// coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark part of 'diets_pagination_model.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models', ); DietsPagination _$DietsPaginationFromJson(Map json) { return _DietsPagination.fromJson(json); } /// @nodoc mixin _$DietsPagination { @JsonKey(name: "data") List get data => throw _privateConstructorUsedError; @JsonKey(name: "links") Links get links => throw _privateConstructorUsedError; @JsonKey(name: "meta") Meta get meta => throw _privateConstructorUsedError; /// Serializes this DietsPagination to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of DietsPagination /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DietsPaginationCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DietsPaginationCopyWith<$Res> { factory $DietsPaginationCopyWith( DietsPagination value, $Res Function(DietsPagination) then, ) = _$DietsPaginationCopyWithImpl<$Res, DietsPagination>; @useResult $Res call({ @JsonKey(name: "data") List data, @JsonKey(name: "links") Links links, @JsonKey(name: "meta") Meta meta, }); $LinksCopyWith<$Res> get links; $MetaCopyWith<$Res> get meta; } /// @nodoc class _$DietsPaginationCopyWithImpl<$Res, $Val extends DietsPagination> implements $DietsPaginationCopyWith<$Res> { _$DietsPaginationCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DietsPagination /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? data = null, Object? links = null, Object? meta = null}) { return _then( _value.copyWith( data: null == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as List, links: null == links ? _value.links : links // ignore: cast_nullable_to_non_nullable as Links, meta: null == meta ? _value.meta : meta // ignore: cast_nullable_to_non_nullable as Meta, ) as $Val, ); } /// Create a copy of DietsPagination /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $LinksCopyWith<$Res> get links { return $LinksCopyWith<$Res>(_value.links, (value) { return _then(_value.copyWith(links: value) as $Val); }); } /// Create a copy of DietsPagination /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $MetaCopyWith<$Res> get meta { return $MetaCopyWith<$Res>(_value.meta, (value) { return _then(_value.copyWith(meta: value) as $Val); }); } } /// @nodoc abstract class _$$DietsPaginationImplCopyWith<$Res> implements $DietsPaginationCopyWith<$Res> { factory _$$DietsPaginationImplCopyWith( _$DietsPaginationImpl value, $Res Function(_$DietsPaginationImpl) then, ) = __$$DietsPaginationImplCopyWithImpl<$Res>; @override @useResult $Res call({ @JsonKey(name: "data") List data, @JsonKey(name: "links") Links links, @JsonKey(name: "meta") Meta meta, }); @override $LinksCopyWith<$Res> get links; @override $MetaCopyWith<$Res> get meta; } /// @nodoc class __$$DietsPaginationImplCopyWithImpl<$Res> extends _$DietsPaginationCopyWithImpl<$Res, _$DietsPaginationImpl> implements _$$DietsPaginationImplCopyWith<$Res> { __$$DietsPaginationImplCopyWithImpl( _$DietsPaginationImpl _value, $Res Function(_$DietsPaginationImpl) _then, ) : super(_value, _then); /// Create a copy of DietsPagination /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? data = null, Object? links = null, Object? meta = null}) { return _then( _$DietsPaginationImpl( data: null == data ? _value._data : data // ignore: cast_nullable_to_non_nullable as List, links: null == links ? _value.links : links // ignore: cast_nullable_to_non_nullable as Links, meta: null == meta ? _value.meta : meta // ignore: cast_nullable_to_non_nullable as Meta, ), ); } } /// @nodoc @JsonSerializable() class _$DietsPaginationImpl implements _DietsPagination { const _$DietsPaginationImpl({ @JsonKey(name: "data") required final List data, @JsonKey(name: "links") required this.links, @JsonKey(name: "meta") required this.meta, }) : _data = data; factory _$DietsPaginationImpl.fromJson(Map json) => _$$DietsPaginationImplFromJson(json); final List _data; @override @JsonKey(name: "data") List get data { if (_data is EqualUnmodifiableListView) return _data; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_data); } @override @JsonKey(name: "links") final Links links; @override @JsonKey(name: "meta") final Meta meta; @override String toString() { return 'DietsPagination(data: $data, links: $links, meta: $meta)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DietsPaginationImpl && const DeepCollectionEquality().equals(other._data, _data) && (identical(other.links, links) || other.links == links) && (identical(other.meta, meta) || other.meta == meta)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_data), links, meta, ); /// Create a copy of DietsPagination /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DietsPaginationImplCopyWith<_$DietsPaginationImpl> get copyWith => __$$DietsPaginationImplCopyWithImpl<_$DietsPaginationImpl>( this, _$identity, ); @override Map toJson() { return _$$DietsPaginationImplToJson(this); } } abstract class _DietsPagination implements DietsPagination { const factory _DietsPagination({ @JsonKey(name: "data") required final List data, @JsonKey(name: "links") required final Links links, @JsonKey(name: "meta") required final Meta meta, }) = _$DietsPaginationImpl; factory _DietsPagination.fromJson(Map json) = _$DietsPaginationImpl.fromJson; @override @JsonKey(name: "data") List get data; @override @JsonKey(name: "links") Links get links; @override @JsonKey(name: "meta") Meta get meta; /// Create a copy of DietsPagination /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DietsPaginationImplCopyWith<_$DietsPaginationImpl> get copyWith => throw _privateConstructorUsedError; } Diet _$DietFromJson(Map json) { return _Diet.fromJson(json); } /// @nodoc mixin _$Diet { @JsonKey(name: "id") int get id => throw _privateConstructorUsedError; @JsonKey(name: "name") String get name => throw _privateConstructorUsedError; @JsonKey(name: "image") String get image => throw _privateConstructorUsedError; @JsonKey(name: "duration") int get duration => throw _privateConstructorUsedError; @JsonKey(name: "state") DietState get state => throw _privateConstructorUsedError; @JsonKey(name: "type") DietType get type => throw _privateConstructorUsedError; @JsonKey(name: "description_md") String get details => throw _privateConstructorUsedError; @JsonKey(name: "daily_schedule") Map>> get dailySchedule => throw _privateConstructorUsedError; @JsonKey(name: "author") Author get author => throw _privateConstructorUsedError; @JsonKey(name: "total_likes") int get totalLikes => throw _privateConstructorUsedError; @JsonKey(name: "total_views") int get totalViews => throw _privateConstructorUsedError; @JsonKey(name: "total_comments") int get totalComments => throw _privateConstructorUsedError; @JsonKey(name: "was_liked_by_me") bool get wasLikedByMe => throw _privateConstructorUsedError; @JsonKey(name: "is_favorite") bool get isFavorite => throw _privateConstructorUsedError; @JsonKey(name: "daily_nutrition") List get dailyNutrition => throw _privateConstructorUsedError; /// Serializes this Diet to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Diet /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DietCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DietCopyWith<$Res> { factory $DietCopyWith(Diet value, $Res Function(Diet) then) = _$DietCopyWithImpl<$Res, Diet>; @useResult $Res call({ @JsonKey(name: "id") int id, @JsonKey(name: "name") String name, @JsonKey(name: "image") String image, @JsonKey(name: "duration") int duration, @JsonKey(name: "state") DietState state, @JsonKey(name: "type") DietType type, @JsonKey(name: "description_md") String details, @JsonKey(name: "daily_schedule") Map>> dailySchedule, @JsonKey(name: "author") Author author, @JsonKey(name: "total_likes") int totalLikes, @JsonKey(name: "total_views") int totalViews, @JsonKey(name: "total_comments") int totalComments, @JsonKey(name: "was_liked_by_me") bool wasLikedByMe, @JsonKey(name: "is_favorite") bool isFavorite, @JsonKey(name: "daily_nutrition") List dailyNutrition, }); $DietTypeCopyWith<$Res> get type; $AuthorCopyWith<$Res> get author; } /// @nodoc class _$DietCopyWithImpl<$Res, $Val extends Diet> implements $DietCopyWith<$Res> { _$DietCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Diet /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? name = null, Object? image = null, Object? duration = null, Object? state = null, Object? type = null, Object? details = null, Object? dailySchedule = null, Object? author = null, Object? totalLikes = null, Object? totalViews = null, Object? totalComments = null, Object? wasLikedByMe = null, Object? isFavorite = null, Object? dailyNutrition = null, }) { return _then( _value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, image: null == image ? _value.image : image // ignore: cast_nullable_to_non_nullable as String, duration: null == duration ? _value.duration : duration // ignore: cast_nullable_to_non_nullable as int, state: null == state ? _value.state : state // ignore: cast_nullable_to_non_nullable as DietState, type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as DietType, details: null == details ? _value.details : details // ignore: cast_nullable_to_non_nullable as String, dailySchedule: null == dailySchedule ? _value.dailySchedule : dailySchedule // ignore: cast_nullable_to_non_nullable as Map>>, author: null == author ? _value.author : author // ignore: cast_nullable_to_non_nullable as Author, totalLikes: null == totalLikes ? _value.totalLikes : totalLikes // ignore: cast_nullable_to_non_nullable as int, totalViews: null == totalViews ? _value.totalViews : totalViews // ignore: cast_nullable_to_non_nullable as int, totalComments: null == totalComments ? _value.totalComments : totalComments // ignore: cast_nullable_to_non_nullable as int, wasLikedByMe: null == wasLikedByMe ? _value.wasLikedByMe : wasLikedByMe // ignore: cast_nullable_to_non_nullable as bool, isFavorite: null == isFavorite ? _value.isFavorite : isFavorite // ignore: cast_nullable_to_non_nullable as bool, dailyNutrition: null == dailyNutrition ? _value.dailyNutrition : dailyNutrition // ignore: cast_nullable_to_non_nullable as List, ) as $Val, ); } /// Create a copy of Diet /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $DietTypeCopyWith<$Res> get type { return $DietTypeCopyWith<$Res>(_value.type, (value) { return _then(_value.copyWith(type: value) as $Val); }); } /// Create a copy of Diet /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AuthorCopyWith<$Res> get author { return $AuthorCopyWith<$Res>(_value.author, (value) { return _then(_value.copyWith(author: value) as $Val); }); } } /// @nodoc abstract class _$$DietImplCopyWith<$Res> implements $DietCopyWith<$Res> { factory _$$DietImplCopyWith( _$DietImpl value, $Res Function(_$DietImpl) then, ) = __$$DietImplCopyWithImpl<$Res>; @override @useResult $Res call({ @JsonKey(name: "id") int id, @JsonKey(name: "name") String name, @JsonKey(name: "image") String image, @JsonKey(name: "duration") int duration, @JsonKey(name: "state") DietState state, @JsonKey(name: "type") DietType type, @JsonKey(name: "description_md") String details, @JsonKey(name: "daily_schedule") Map>> dailySchedule, @JsonKey(name: "author") Author author, @JsonKey(name: "total_likes") int totalLikes, @JsonKey(name: "total_views") int totalViews, @JsonKey(name: "total_comments") int totalComments, @JsonKey(name: "was_liked_by_me") bool wasLikedByMe, @JsonKey(name: "is_favorite") bool isFavorite, @JsonKey(name: "daily_nutrition") List dailyNutrition, }); @override $DietTypeCopyWith<$Res> get type; @override $AuthorCopyWith<$Res> get author; } /// @nodoc class __$$DietImplCopyWithImpl<$Res> extends _$DietCopyWithImpl<$Res, _$DietImpl> implements _$$DietImplCopyWith<$Res> { __$$DietImplCopyWithImpl(_$DietImpl _value, $Res Function(_$DietImpl) _then) : super(_value, _then); /// Create a copy of Diet /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? name = null, Object? image = null, Object? duration = null, Object? state = null, Object? type = null, Object? details = null, Object? dailySchedule = null, Object? author = null, Object? totalLikes = null, Object? totalViews = null, Object? totalComments = null, Object? wasLikedByMe = null, Object? isFavorite = null, Object? dailyNutrition = null, }) { return _then( _$DietImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, image: null == image ? _value.image : image // ignore: cast_nullable_to_non_nullable as String, duration: null == duration ? _value.duration : duration // ignore: cast_nullable_to_non_nullable as int, state: null == state ? _value.state : state // ignore: cast_nullable_to_non_nullable as DietState, type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as DietType, details: null == details ? _value.details : details // ignore: cast_nullable_to_non_nullable as String, dailySchedule: null == dailySchedule ? _value._dailySchedule : dailySchedule // ignore: cast_nullable_to_non_nullable as Map>>, author: null == author ? _value.author : author // ignore: cast_nullable_to_non_nullable as Author, totalLikes: null == totalLikes ? _value.totalLikes : totalLikes // ignore: cast_nullable_to_non_nullable as int, totalViews: null == totalViews ? _value.totalViews : totalViews // ignore: cast_nullable_to_non_nullable as int, totalComments: null == totalComments ? _value.totalComments : totalComments // ignore: cast_nullable_to_non_nullable as int, wasLikedByMe: null == wasLikedByMe ? _value.wasLikedByMe : wasLikedByMe // ignore: cast_nullable_to_non_nullable as bool, isFavorite: null == isFavorite ? _value.isFavorite : isFavorite // ignore: cast_nullable_to_non_nullable as bool, dailyNutrition: null == dailyNutrition ? _value._dailyNutrition : dailyNutrition // ignore: cast_nullable_to_non_nullable as List, ), ); } } /// @nodoc @JsonSerializable() class _$DietImpl implements _Diet { const _$DietImpl({ @JsonKey(name: "id") required this.id, @JsonKey(name: "name") required this.name, @JsonKey(name: "image") required this.image, @JsonKey(name: "duration") required this.duration, @JsonKey(name: "state") required this.state, @JsonKey(name: "type") required this.type, @JsonKey(name: "description_md") required this.details, @JsonKey(name: "daily_schedule") required final Map>> dailySchedule, @JsonKey(name: "author") required this.author, @JsonKey(name: "total_likes") required this.totalLikes, @JsonKey(name: "total_views") required this.totalViews, @JsonKey(name: "total_comments") required this.totalComments, @JsonKey(name: "was_liked_by_me") required this.wasLikedByMe, @JsonKey(name: "is_favorite") required this.isFavorite, @JsonKey(name: "daily_nutrition") required final List dailyNutrition, }) : _dailySchedule = dailySchedule, _dailyNutrition = dailyNutrition; factory _$DietImpl.fromJson(Map json) => _$$DietImplFromJson(json); @override @JsonKey(name: "id") final int id; @override @JsonKey(name: "name") final String name; @override @JsonKey(name: "image") final String image; @override @JsonKey(name: "duration") final int duration; @override @JsonKey(name: "state") final DietState state; @override @JsonKey(name: "type") final DietType type; @override @JsonKey(name: "description_md") final String details; final Map>> _dailySchedule; @override @JsonKey(name: "daily_schedule") Map>> get dailySchedule { if (_dailySchedule is EqualUnmodifiableMapView) return _dailySchedule; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_dailySchedule); } @override @JsonKey(name: "author") final Author author; @override @JsonKey(name: "total_likes") final int totalLikes; @override @JsonKey(name: "total_views") final int totalViews; @override @JsonKey(name: "total_comments") final int totalComments; @override @JsonKey(name: "was_liked_by_me") final bool wasLikedByMe; @override @JsonKey(name: "is_favorite") final bool isFavorite; final List _dailyNutrition; @override @JsonKey(name: "daily_nutrition") List get dailyNutrition { if (_dailyNutrition is EqualUnmodifiableListView) return _dailyNutrition; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_dailyNutrition); } @override String toString() { return 'Diet(id: $id, name: $name, image: $image, duration: $duration, state: $state, type: $type, details: $details, dailySchedule: $dailySchedule, author: $author, totalLikes: $totalLikes, totalViews: $totalViews, totalComments: $totalComments, wasLikedByMe: $wasLikedByMe, isFavorite: $isFavorite, dailyNutrition: $dailyNutrition)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DietImpl && (identical(other.id, id) || other.id == id) && (identical(other.name, name) || other.name == name) && (identical(other.image, image) || other.image == image) && (identical(other.duration, duration) || other.duration == duration) && (identical(other.state, state) || other.state == state) && (identical(other.type, type) || other.type == type) && (identical(other.details, details) || other.details == details) && const DeepCollectionEquality().equals( other._dailySchedule, _dailySchedule, ) && (identical(other.author, author) || other.author == author) && (identical(other.totalLikes, totalLikes) || other.totalLikes == totalLikes) && (identical(other.totalViews, totalViews) || other.totalViews == totalViews) && (identical(other.totalComments, totalComments) || other.totalComments == totalComments) && (identical(other.wasLikedByMe, wasLikedByMe) || other.wasLikedByMe == wasLikedByMe) && (identical(other.isFavorite, isFavorite) || other.isFavorite == isFavorite) && const DeepCollectionEquality().equals( other._dailyNutrition, _dailyNutrition, )); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, id, name, image, duration, state, type, details, const DeepCollectionEquality().hash(_dailySchedule), author, totalLikes, totalViews, totalComments, wasLikedByMe, isFavorite, const DeepCollectionEquality().hash(_dailyNutrition), ); /// Create a copy of Diet /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DietImplCopyWith<_$DietImpl> get copyWith => __$$DietImplCopyWithImpl<_$DietImpl>(this, _$identity); @override Map toJson() { return _$$DietImplToJson(this); } } abstract class _Diet implements Diet { const factory _Diet({ @JsonKey(name: "id") required final int id, @JsonKey(name: "name") required final String name, @JsonKey(name: "image") required final String image, @JsonKey(name: "duration") required final int duration, @JsonKey(name: "state") required final DietState state, @JsonKey(name: "type") required final DietType type, @JsonKey(name: "description_md") required final String details, @JsonKey(name: "daily_schedule") required final Map>> dailySchedule, @JsonKey(name: "author") required final Author author, @JsonKey(name: "total_likes") required final int totalLikes, @JsonKey(name: "total_views") required final int totalViews, @JsonKey(name: "total_comments") required final int totalComments, @JsonKey(name: "was_liked_by_me") required final bool wasLikedByMe, @JsonKey(name: "is_favorite") required final bool isFavorite, @JsonKey(name: "daily_nutrition") required final List dailyNutrition, }) = _$DietImpl; factory _Diet.fromJson(Map json) = _$DietImpl.fromJson; @override @JsonKey(name: "id") int get id; @override @JsonKey(name: "name") String get name; @override @JsonKey(name: "image") String get image; @override @JsonKey(name: "duration") int get duration; @override @JsonKey(name: "state") DietState get state; @override @JsonKey(name: "type") DietType get type; @override @JsonKey(name: "description_md") String get details; @override @JsonKey(name: "daily_schedule") Map>> get dailySchedule; @override @JsonKey(name: "author") Author get author; @override @JsonKey(name: "total_likes") int get totalLikes; @override @JsonKey(name: "total_views") int get totalViews; @override @JsonKey(name: "total_comments") int get totalComments; @override @JsonKey(name: "was_liked_by_me") bool get wasLikedByMe; @override @JsonKey(name: "is_favorite") bool get isFavorite; @override @JsonKey(name: "daily_nutrition") List get dailyNutrition; /// Create a copy of Diet /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DietImplCopyWith<_$DietImpl> get copyWith => throw _privateConstructorUsedError; } CreatedDiet _$CreatedDietFromJson(Map json) { return _CreatedDiet.fromJson(json); } /// @nodoc mixin _$CreatedDiet { @JsonKey(name: "id") int get id => throw _privateConstructorUsedError; /// Serializes this CreatedDiet to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of CreatedDiet /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $CreatedDietCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CreatedDietCopyWith<$Res> { factory $CreatedDietCopyWith( CreatedDiet value, $Res Function(CreatedDiet) then, ) = _$CreatedDietCopyWithImpl<$Res, CreatedDiet>; @useResult $Res call({@JsonKey(name: "id") int id}); } /// @nodoc class _$CreatedDietCopyWithImpl<$Res, $Val extends CreatedDiet> implements $CreatedDietCopyWith<$Res> { _$CreatedDietCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of CreatedDiet /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? id = null}) { return _then( _value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } } /// @nodoc abstract class _$$CreatedDietImplCopyWith<$Res> implements $CreatedDietCopyWith<$Res> { factory _$$CreatedDietImplCopyWith( _$CreatedDietImpl value, $Res Function(_$CreatedDietImpl) then, ) = __$$CreatedDietImplCopyWithImpl<$Res>; @override @useResult $Res call({@JsonKey(name: "id") int id}); } /// @nodoc class __$$CreatedDietImplCopyWithImpl<$Res> extends _$CreatedDietCopyWithImpl<$Res, _$CreatedDietImpl> implements _$$CreatedDietImplCopyWith<$Res> { __$$CreatedDietImplCopyWithImpl( _$CreatedDietImpl _value, $Res Function(_$CreatedDietImpl) _then, ) : super(_value, _then); /// Create a copy of CreatedDiet /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? id = null}) { return _then( _$CreatedDietImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc @JsonSerializable() class _$CreatedDietImpl implements _CreatedDiet { const _$CreatedDietImpl({@JsonKey(name: "id") required this.id}); factory _$CreatedDietImpl.fromJson(Map json) => _$$CreatedDietImplFromJson(json); @override @JsonKey(name: "id") final int id; @override String toString() { return 'CreatedDiet(id: $id)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreatedDietImpl && (identical(other.id, id) || other.id == id)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id); /// Create a copy of CreatedDiet /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreatedDietImplCopyWith<_$CreatedDietImpl> get copyWith => __$$CreatedDietImplCopyWithImpl<_$CreatedDietImpl>(this, _$identity); @override Map toJson() { return _$$CreatedDietImplToJson(this); } } abstract class _CreatedDiet implements CreatedDiet { const factory _CreatedDiet({@JsonKey(name: "id") required final int id}) = _$CreatedDietImpl; factory _CreatedDiet.fromJson(Map json) = _$CreatedDietImpl.fromJson; @override @JsonKey(name: "id") int get id; /// Create a copy of CreatedDiet /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$CreatedDietImplCopyWith<_$CreatedDietImpl> get copyWith => throw _privateConstructorUsedError; } Author _$AuthorFromJson(Map json) { return _Author.fromJson(json); } /// @nodoc mixin _$Author { @JsonKey(name: "author_slug") String get authorSlug => throw _privateConstructorUsedError; @JsonKey(name: "author_name") String get authorName => throw _privateConstructorUsedError; @JsonKey(name: "author_profile_icon") String get authorProfileIcon => throw _privateConstructorUsedError; @JsonKey(name: "author_is_me") bool get authorIsMe => throw _privateConstructorUsedError; @JsonKey(name: "is_entity_subscribed_by_me") bool? get isEntitySubscribedByMe => throw _privateConstructorUsedError; @JsonKey(name: "author_place_in_rating") int? get authorPlaceInRating => throw _privateConstructorUsedError; /// Serializes this Author to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Author /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $AuthorCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $AuthorCopyWith<$Res> { factory $AuthorCopyWith(Author value, $Res Function(Author) then) = _$AuthorCopyWithImpl<$Res, Author>; @useResult $Res call({ @JsonKey(name: "author_slug") String authorSlug, @JsonKey(name: "author_name") String authorName, @JsonKey(name: "author_profile_icon") String authorProfileIcon, @JsonKey(name: "author_is_me") bool authorIsMe, @JsonKey(name: "is_entity_subscribed_by_me") bool? isEntitySubscribedByMe, @JsonKey(name: "author_place_in_rating") int? authorPlaceInRating, }); } /// @nodoc class _$AuthorCopyWithImpl<$Res, $Val extends Author> implements $AuthorCopyWith<$Res> { _$AuthorCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Author /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? authorSlug = null, Object? authorName = null, Object? authorProfileIcon = null, Object? authorIsMe = null, Object? isEntitySubscribedByMe = freezed, Object? authorPlaceInRating = freezed, }) { return _then( _value.copyWith( authorSlug: null == authorSlug ? _value.authorSlug : authorSlug // ignore: cast_nullable_to_non_nullable as String, authorName: null == authorName ? _value.authorName : authorName // ignore: cast_nullable_to_non_nullable as String, authorProfileIcon: null == authorProfileIcon ? _value.authorProfileIcon : authorProfileIcon // ignore: cast_nullable_to_non_nullable as String, authorIsMe: null == authorIsMe ? _value.authorIsMe : authorIsMe // ignore: cast_nullable_to_non_nullable as bool, isEntitySubscribedByMe: freezed == isEntitySubscribedByMe ? _value.isEntitySubscribedByMe : isEntitySubscribedByMe // ignore: cast_nullable_to_non_nullable as bool?, authorPlaceInRating: freezed == authorPlaceInRating ? _value.authorPlaceInRating : authorPlaceInRating // ignore: cast_nullable_to_non_nullable as int?, ) as $Val, ); } } /// @nodoc abstract class _$$AuthorImplCopyWith<$Res> implements $AuthorCopyWith<$Res> { factory _$$AuthorImplCopyWith( _$AuthorImpl value, $Res Function(_$AuthorImpl) then, ) = __$$AuthorImplCopyWithImpl<$Res>; @override @useResult $Res call({ @JsonKey(name: "author_slug") String authorSlug, @JsonKey(name: "author_name") String authorName, @JsonKey(name: "author_profile_icon") String authorProfileIcon, @JsonKey(name: "author_is_me") bool authorIsMe, @JsonKey(name: "is_entity_subscribed_by_me") bool? isEntitySubscribedByMe, @JsonKey(name: "author_place_in_rating") int? authorPlaceInRating, }); } /// @nodoc class __$$AuthorImplCopyWithImpl<$Res> extends _$AuthorCopyWithImpl<$Res, _$AuthorImpl> implements _$$AuthorImplCopyWith<$Res> { __$$AuthorImplCopyWithImpl( _$AuthorImpl _value, $Res Function(_$AuthorImpl) _then, ) : super(_value, _then); /// Create a copy of Author /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? authorSlug = null, Object? authorName = null, Object? authorProfileIcon = null, Object? authorIsMe = null, Object? isEntitySubscribedByMe = freezed, Object? authorPlaceInRating = freezed, }) { return _then( _$AuthorImpl( authorSlug: null == authorSlug ? _value.authorSlug : authorSlug // ignore: cast_nullable_to_non_nullable as String, authorName: null == authorName ? _value.authorName : authorName // ignore: cast_nullable_to_non_nullable as String, authorProfileIcon: null == authorProfileIcon ? _value.authorProfileIcon : authorProfileIcon // ignore: cast_nullable_to_non_nullable as String, authorIsMe: null == authorIsMe ? _value.authorIsMe : authorIsMe // ignore: cast_nullable_to_non_nullable as bool, isEntitySubscribedByMe: freezed == isEntitySubscribedByMe ? _value.isEntitySubscribedByMe : isEntitySubscribedByMe // ignore: cast_nullable_to_non_nullable as bool?, authorPlaceInRating: freezed == authorPlaceInRating ? _value.authorPlaceInRating : authorPlaceInRating // ignore: cast_nullable_to_non_nullable as int?, ), ); } } /// @nodoc @JsonSerializable() class _$AuthorImpl implements _Author { const _$AuthorImpl({ @JsonKey(name: "author_slug") required this.authorSlug, @JsonKey(name: "author_name") required this.authorName, @JsonKey(name: "author_profile_icon") required this.authorProfileIcon, @JsonKey(name: "author_is_me") required this.authorIsMe, @JsonKey(name: "is_entity_subscribed_by_me") this.isEntitySubscribedByMe, @JsonKey(name: "author_place_in_rating") this.authorPlaceInRating, }); factory _$AuthorImpl.fromJson(Map json) => _$$AuthorImplFromJson(json); @override @JsonKey(name: "author_slug") final String authorSlug; @override @JsonKey(name: "author_name") final String authorName; @override @JsonKey(name: "author_profile_icon") final String authorProfileIcon; @override @JsonKey(name: "author_is_me") final bool authorIsMe; @override @JsonKey(name: "is_entity_subscribed_by_me") final bool? isEntitySubscribedByMe; @override @JsonKey(name: "author_place_in_rating") final int? authorPlaceInRating; @override String toString() { return 'Author(authorSlug: $authorSlug, authorName: $authorName, authorProfileIcon: $authorProfileIcon, authorIsMe: $authorIsMe, isEntitySubscribedByMe: $isEntitySubscribedByMe, authorPlaceInRating: $authorPlaceInRating)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AuthorImpl && (identical(other.authorSlug, authorSlug) || other.authorSlug == authorSlug) && (identical(other.authorName, authorName) || other.authorName == authorName) && (identical(other.authorProfileIcon, authorProfileIcon) || other.authorProfileIcon == authorProfileIcon) && (identical(other.authorIsMe, authorIsMe) || other.authorIsMe == authorIsMe) && (identical(other.isEntitySubscribedByMe, isEntitySubscribedByMe) || other.isEntitySubscribedByMe == isEntitySubscribedByMe) && (identical(other.authorPlaceInRating, authorPlaceInRating) || other.authorPlaceInRating == authorPlaceInRating)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, authorSlug, authorName, authorProfileIcon, authorIsMe, isEntitySubscribedByMe, authorPlaceInRating, ); /// Create a copy of Author /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AuthorImplCopyWith<_$AuthorImpl> get copyWith => __$$AuthorImplCopyWithImpl<_$AuthorImpl>(this, _$identity); @override Map toJson() { return _$$AuthorImplToJson(this); } } abstract class _Author implements Author { const factory _Author({ @JsonKey(name: "author_slug") required final String authorSlug, @JsonKey(name: "author_name") required final String authorName, @JsonKey(name: "author_profile_icon") required final String authorProfileIcon, @JsonKey(name: "author_is_me") required final bool authorIsMe, @JsonKey(name: "is_entity_subscribed_by_me") final bool? isEntitySubscribedByMe, @JsonKey(name: "author_place_in_rating") final int? authorPlaceInRating, }) = _$AuthorImpl; factory _Author.fromJson(Map json) = _$AuthorImpl.fromJson; @override @JsonKey(name: "author_slug") String get authorSlug; @override @JsonKey(name: "author_name") String get authorName; @override @JsonKey(name: "author_profile_icon") String get authorProfileIcon; @override @JsonKey(name: "author_is_me") bool get authorIsMe; @override @JsonKey(name: "is_entity_subscribed_by_me") bool? get isEntitySubscribedByMe; @override @JsonKey(name: "author_place_in_rating") int? get authorPlaceInRating; /// Create a copy of Author /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$AuthorImplCopyWith<_$AuthorImpl> get copyWith => throw _privateConstructorUsedError; } DailySchedule _$DailyScheduleFromJson(Map json) { return _DailySchedule.fromJson(json); } /// @nodoc mixin _$DailySchedule { @JsonKey(name: "name") String get name => throw _privateConstructorUsedError; @JsonKey(name: "portion") Portion get portion => throw _privateConstructorUsedError; @JsonKey(name: "quantity", fromJson: _parseQuantity) int get quantity => throw _privateConstructorUsedError; @JsonKey(name: 'nutrition', includeToJson: false) DailyNutrition? get dailyNutrition => throw _privateConstructorUsedError; @JsonKey( name: 'product_nutritional_value_id', includeToJson: true, includeFromJson: false, includeIfNull: false, ) String? get productNutritionalValueId => throw _privateConstructorUsedError; /// Serializes this DailySchedule to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of DailySchedule /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DailyScheduleCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DailyScheduleCopyWith<$Res> { factory $DailyScheduleCopyWith( DailySchedule value, $Res Function(DailySchedule) then, ) = _$DailyScheduleCopyWithImpl<$Res, DailySchedule>; @useResult $Res call({ @JsonKey(name: "name") String name, @JsonKey(name: "portion") Portion portion, @JsonKey(name: "quantity", fromJson: _parseQuantity) int quantity, @JsonKey(name: 'nutrition', includeToJson: false) DailyNutrition? dailyNutrition, @JsonKey( name: 'product_nutritional_value_id', includeToJson: true, includeFromJson: false, includeIfNull: false, ) String? productNutritionalValueId, }); $DailyNutritionCopyWith<$Res>? get dailyNutrition; } /// @nodoc class _$DailyScheduleCopyWithImpl<$Res, $Val extends DailySchedule> implements $DailyScheduleCopyWith<$Res> { _$DailyScheduleCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DailySchedule /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? portion = null, Object? quantity = null, Object? dailyNutrition = freezed, Object? productNutritionalValueId = freezed, }) { return _then( _value.copyWith( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, portion: null == portion ? _value.portion : portion // ignore: cast_nullable_to_non_nullable as Portion, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, dailyNutrition: freezed == dailyNutrition ? _value.dailyNutrition : dailyNutrition // ignore: cast_nullable_to_non_nullable as DailyNutrition?, productNutritionalValueId: freezed == productNutritionalValueId ? _value.productNutritionalValueId : productNutritionalValueId // ignore: cast_nullable_to_non_nullable as String?, ) as $Val, ); } /// Create a copy of DailySchedule /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $DailyNutritionCopyWith<$Res>? get dailyNutrition { if (_value.dailyNutrition == null) { return null; } return $DailyNutritionCopyWith<$Res>(_value.dailyNutrition!, (value) { return _then(_value.copyWith(dailyNutrition: value) as $Val); }); } } /// @nodoc abstract class _$$DailyScheduleImplCopyWith<$Res> implements $DailyScheduleCopyWith<$Res> { factory _$$DailyScheduleImplCopyWith( _$DailyScheduleImpl value, $Res Function(_$DailyScheduleImpl) then, ) = __$$DailyScheduleImplCopyWithImpl<$Res>; @override @useResult $Res call({ @JsonKey(name: "name") String name, @JsonKey(name: "portion") Portion portion, @JsonKey(name: "quantity", fromJson: _parseQuantity) int quantity, @JsonKey(name: 'nutrition', includeToJson: false) DailyNutrition? dailyNutrition, @JsonKey( name: 'product_nutritional_value_id', includeToJson: true, includeFromJson: false, includeIfNull: false, ) String? productNutritionalValueId, }); @override $DailyNutritionCopyWith<$Res>? get dailyNutrition; } /// @nodoc class __$$DailyScheduleImplCopyWithImpl<$Res> extends _$DailyScheduleCopyWithImpl<$Res, _$DailyScheduleImpl> implements _$$DailyScheduleImplCopyWith<$Res> { __$$DailyScheduleImplCopyWithImpl( _$DailyScheduleImpl _value, $Res Function(_$DailyScheduleImpl) _then, ) : super(_value, _then); /// Create a copy of DailySchedule /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? portion = null, Object? quantity = null, Object? dailyNutrition = freezed, Object? productNutritionalValueId = freezed, }) { return _then( _$DailyScheduleImpl( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, portion: null == portion ? _value.portion : portion // ignore: cast_nullable_to_non_nullable as Portion, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, dailyNutrition: freezed == dailyNutrition ? _value.dailyNutrition : dailyNutrition // ignore: cast_nullable_to_non_nullable as DailyNutrition?, productNutritionalValueId: freezed == productNutritionalValueId ? _value.productNutritionalValueId : productNutritionalValueId // ignore: cast_nullable_to_non_nullable as String?, ), ); } } /// @nodoc @JsonSerializable() class _$DailyScheduleImpl implements _DailySchedule { const _$DailyScheduleImpl({ @JsonKey(name: "name") required this.name, @JsonKey(name: "portion") required this.portion, @JsonKey(name: "quantity", fromJson: _parseQuantity) required this.quantity, @JsonKey(name: 'nutrition', includeToJson: false) this.dailyNutrition, @JsonKey( name: 'product_nutritional_value_id', includeToJson: true, includeFromJson: false, includeIfNull: false, ) this.productNutritionalValueId, }); factory _$DailyScheduleImpl.fromJson(Map json) => _$$DailyScheduleImplFromJson(json); @override @JsonKey(name: "name") final String name; @override @JsonKey(name: "portion") final Portion portion; @override @JsonKey(name: "quantity", fromJson: _parseQuantity) final int quantity; @override @JsonKey(name: 'nutrition', includeToJson: false) final DailyNutrition? dailyNutrition; @override @JsonKey( name: 'product_nutritional_value_id', includeToJson: true, includeFromJson: false, includeIfNull: false, ) final String? productNutritionalValueId; @override String toString() { return 'DailySchedule(name: $name, portion: $portion, quantity: $quantity, dailyNutrition: $dailyNutrition, productNutritionalValueId: $productNutritionalValueId)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DailyScheduleImpl && (identical(other.name, name) || other.name == name) && (identical(other.portion, portion) || other.portion == portion) && (identical(other.quantity, quantity) || other.quantity == quantity) && (identical(other.dailyNutrition, dailyNutrition) || other.dailyNutrition == dailyNutrition) && (identical( other.productNutritionalValueId, productNutritionalValueId, ) || other.productNutritionalValueId == productNutritionalValueId)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, name, portion, quantity, dailyNutrition, productNutritionalValueId, ); /// Create a copy of DailySchedule /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DailyScheduleImplCopyWith<_$DailyScheduleImpl> get copyWith => __$$DailyScheduleImplCopyWithImpl<_$DailyScheduleImpl>(this, _$identity); @override Map toJson() { return _$$DailyScheduleImplToJson(this); } } abstract class _DailySchedule implements DailySchedule { const factory _DailySchedule({ @JsonKey(name: "name") required final String name, @JsonKey(name: "portion") required final Portion portion, @JsonKey(name: "quantity", fromJson: _parseQuantity) required final int quantity, @JsonKey(name: 'nutrition', includeToJson: false) final DailyNutrition? dailyNutrition, @JsonKey( name: 'product_nutritional_value_id', includeToJson: true, includeFromJson: false, includeIfNull: false, ) final String? productNutritionalValueId, }) = _$DailyScheduleImpl; factory _DailySchedule.fromJson(Map json) = _$DailyScheduleImpl.fromJson; @override @JsonKey(name: "name") String get name; @override @JsonKey(name: "portion") Portion get portion; @override @JsonKey(name: "quantity", fromJson: _parseQuantity) int get quantity; @override @JsonKey(name: 'nutrition', includeToJson: false) DailyNutrition? get dailyNutrition; @override @JsonKey( name: 'product_nutritional_value_id', includeToJson: true, includeFromJson: false, includeIfNull: false, ) String? get productNutritionalValueId; /// Create a copy of DailySchedule /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DailyScheduleImplCopyWith<_$DailyScheduleImpl> get copyWith => throw _privateConstructorUsedError; } DietType _$DietTypeFromJson(Map json) { return _DietType.fromJson(json); } /// @nodoc mixin _$DietType { @JsonKey(name: "light") bool? get light => throw _privateConstructorUsedError; @JsonKey(name: "veg") bool? get veg => throw _privateConstructorUsedError; @JsonKey(name: "carb") bool? get carb => throw _privateConstructorUsedError; @JsonKey(name: "meat") bool? get meat => throw _privateConstructorUsedError; /// Serializes this DietType to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of DietType /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DietTypeCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DietTypeCopyWith<$Res> { factory $DietTypeCopyWith(DietType value, $Res Function(DietType) then) = _$DietTypeCopyWithImpl<$Res, DietType>; @useResult $Res call({ @JsonKey(name: "light") bool? light, @JsonKey(name: "veg") bool? veg, @JsonKey(name: "carb") bool? carb, @JsonKey(name: "meat") bool? meat, }); } /// @nodoc class _$DietTypeCopyWithImpl<$Res, $Val extends DietType> implements $DietTypeCopyWith<$Res> { _$DietTypeCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DietType /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? light = freezed, Object? veg = freezed, Object? carb = freezed, Object? meat = freezed, }) { return _then( _value.copyWith( light: freezed == light ? _value.light : light // ignore: cast_nullable_to_non_nullable as bool?, veg: freezed == veg ? _value.veg : veg // ignore: cast_nullable_to_non_nullable as bool?, carb: freezed == carb ? _value.carb : carb // ignore: cast_nullable_to_non_nullable as bool?, meat: freezed == meat ? _value.meat : meat // ignore: cast_nullable_to_non_nullable as bool?, ) as $Val, ); } } /// @nodoc abstract class _$$DietTypeImplCopyWith<$Res> implements $DietTypeCopyWith<$Res> { factory _$$DietTypeImplCopyWith( _$DietTypeImpl value, $Res Function(_$DietTypeImpl) then, ) = __$$DietTypeImplCopyWithImpl<$Res>; @override @useResult $Res call({ @JsonKey(name: "light") bool? light, @JsonKey(name: "veg") bool? veg, @JsonKey(name: "carb") bool? carb, @JsonKey(name: "meat") bool? meat, }); } /// @nodoc class __$$DietTypeImplCopyWithImpl<$Res> extends _$DietTypeCopyWithImpl<$Res, _$DietTypeImpl> implements _$$DietTypeImplCopyWith<$Res> { __$$DietTypeImplCopyWithImpl( _$DietTypeImpl _value, $Res Function(_$DietTypeImpl) _then, ) : super(_value, _then); /// Create a copy of DietType /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? light = freezed, Object? veg = freezed, Object? carb = freezed, Object? meat = freezed, }) { return _then( _$DietTypeImpl( light: freezed == light ? _value.light : light // ignore: cast_nullable_to_non_nullable as bool?, veg: freezed == veg ? _value.veg : veg // ignore: cast_nullable_to_non_nullable as bool?, carb: freezed == carb ? _value.carb : carb // ignore: cast_nullable_to_non_nullable as bool?, meat: freezed == meat ? _value.meat : meat // ignore: cast_nullable_to_non_nullable as bool?, ), ); } } /// @nodoc @JsonSerializable() class _$DietTypeImpl extends _DietType { const _$DietTypeImpl({ @JsonKey(name: "light") this.light, @JsonKey(name: "veg") this.veg, @JsonKey(name: "carb") this.carb, @JsonKey(name: "meat") this.meat, }) : super._(); factory _$DietTypeImpl.fromJson(Map json) => _$$DietTypeImplFromJson(json); @override @JsonKey(name: "light") final bool? light; @override @JsonKey(name: "veg") final bool? veg; @override @JsonKey(name: "carb") final bool? carb; @override @JsonKey(name: "meat") final bool? meat; @override String toString() { return 'DietType(light: $light, veg: $veg, carb: $carb, meat: $meat)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DietTypeImpl && (identical(other.light, light) || other.light == light) && (identical(other.veg, veg) || other.veg == veg) && (identical(other.carb, carb) || other.carb == carb) && (identical(other.meat, meat) || other.meat == meat)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, light, veg, carb, meat); /// Create a copy of DietType /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DietTypeImplCopyWith<_$DietTypeImpl> get copyWith => __$$DietTypeImplCopyWithImpl<_$DietTypeImpl>(this, _$identity); @override Map toJson() { return _$$DietTypeImplToJson(this); } } abstract class _DietType extends DietType { const factory _DietType({ @JsonKey(name: "light") final bool? light, @JsonKey(name: "veg") final bool? veg, @JsonKey(name: "carb") final bool? carb, @JsonKey(name: "meat") final bool? meat, }) = _$DietTypeImpl; const _DietType._() : super._(); factory _DietType.fromJson(Map json) = _$DietTypeImpl.fromJson; @override @JsonKey(name: "light") bool? get light; @override @JsonKey(name: "veg") bool? get veg; @override @JsonKey(name: "carb") bool? get carb; @override @JsonKey(name: "meat") bool? get meat; /// Create a copy of DietType /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DietTypeImplCopyWith<_$DietTypeImpl> get copyWith => throw _privateConstructorUsedError; } DailyNutrition _$DailyNutritionFromJson(Map json) { return _DailyNutrition.fromJson(json); } /// @nodoc mixin _$DailyNutrition { @JsonKey(name: 'energy') double get energy => throw _privateConstructorUsedError; @JsonKey(name: 'proteins') double get proteins => throw _privateConstructorUsedError; @JsonKey(name: 'fats') double get fats => throw _privateConstructorUsedError; @JsonKey(name: 'carbohydrates') double get carbohydrates => throw _privateConstructorUsedError; /// Serializes this DailyNutrition to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of DailyNutrition /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DailyNutritionCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DailyNutritionCopyWith<$Res> { factory $DailyNutritionCopyWith( DailyNutrition value, $Res Function(DailyNutrition) then, ) = _$DailyNutritionCopyWithImpl<$Res, DailyNutrition>; @useResult $Res call({ @JsonKey(name: 'energy') double energy, @JsonKey(name: 'proteins') double proteins, @JsonKey(name: 'fats') double fats, @JsonKey(name: 'carbohydrates') double carbohydrates, }); } /// @nodoc class _$DailyNutritionCopyWithImpl<$Res, $Val extends DailyNutrition> implements $DailyNutritionCopyWith<$Res> { _$DailyNutritionCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DailyNutrition /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? energy = null, Object? proteins = null, Object? fats = null, Object? carbohydrates = null, }) { return _then( _value.copyWith( energy: null == energy ? _value.energy : energy // ignore: cast_nullable_to_non_nullable as double, proteins: null == proteins ? _value.proteins : proteins // ignore: cast_nullable_to_non_nullable as double, fats: null == fats ? _value.fats : fats // ignore: cast_nullable_to_non_nullable as double, carbohydrates: null == carbohydrates ? _value.carbohydrates : carbohydrates // ignore: cast_nullable_to_non_nullable as double, ) as $Val, ); } } /// @nodoc abstract class _$$DailyNutritionImplCopyWith<$Res> implements $DailyNutritionCopyWith<$Res> { factory _$$DailyNutritionImplCopyWith( _$DailyNutritionImpl value, $Res Function(_$DailyNutritionImpl) then, ) = __$$DailyNutritionImplCopyWithImpl<$Res>; @override @useResult $Res call({ @JsonKey(name: 'energy') double energy, @JsonKey(name: 'proteins') double proteins, @JsonKey(name: 'fats') double fats, @JsonKey(name: 'carbohydrates') double carbohydrates, }); } /// @nodoc class __$$DailyNutritionImplCopyWithImpl<$Res> extends _$DailyNutritionCopyWithImpl<$Res, _$DailyNutritionImpl> implements _$$DailyNutritionImplCopyWith<$Res> { __$$DailyNutritionImplCopyWithImpl( _$DailyNutritionImpl _value, $Res Function(_$DailyNutritionImpl) _then, ) : super(_value, _then); /// Create a copy of DailyNutrition /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? energy = null, Object? proteins = null, Object? fats = null, Object? carbohydrates = null, }) { return _then( _$DailyNutritionImpl( energy: null == energy ? _value.energy : energy // ignore: cast_nullable_to_non_nullable as double, proteins: null == proteins ? _value.proteins : proteins // ignore: cast_nullable_to_non_nullable as double, fats: null == fats ? _value.fats : fats // ignore: cast_nullable_to_non_nullable as double, carbohydrates: null == carbohydrates ? _value.carbohydrates : carbohydrates // ignore: cast_nullable_to_non_nullable as double, ), ); } } /// @nodoc @JsonSerializable() class _$DailyNutritionImpl implements _DailyNutrition { const _$DailyNutritionImpl({ @JsonKey(name: 'energy') required this.energy, @JsonKey(name: 'proteins') required this.proteins, @JsonKey(name: 'fats') required this.fats, @JsonKey(name: 'carbohydrates') required this.carbohydrates, }); factory _$DailyNutritionImpl.fromJson(Map json) => _$$DailyNutritionImplFromJson(json); @override @JsonKey(name: 'energy') final double energy; @override @JsonKey(name: 'proteins') final double proteins; @override @JsonKey(name: 'fats') final double fats; @override @JsonKey(name: 'carbohydrates') final double carbohydrates; @override String toString() { return 'DailyNutrition(energy: $energy, proteins: $proteins, fats: $fats, carbohydrates: $carbohydrates)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DailyNutritionImpl && (identical(other.energy, energy) || other.energy == energy) && (identical(other.proteins, proteins) || other.proteins == proteins) && (identical(other.fats, fats) || other.fats == fats) && (identical(other.carbohydrates, carbohydrates) || other.carbohydrates == carbohydrates)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, energy, proteins, fats, carbohydrates); /// Create a copy of DailyNutrition /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DailyNutritionImplCopyWith<_$DailyNutritionImpl> get copyWith => __$$DailyNutritionImplCopyWithImpl<_$DailyNutritionImpl>( this, _$identity, ); @override Map toJson() { return _$$DailyNutritionImplToJson(this); } } abstract class _DailyNutrition implements DailyNutrition { const factory _DailyNutrition({ @JsonKey(name: 'energy') required final double energy, @JsonKey(name: 'proteins') required final double proteins, @JsonKey(name: 'fats') required final double fats, @JsonKey(name: 'carbohydrates') required final double carbohydrates, }) = _$DailyNutritionImpl; factory _DailyNutrition.fromJson(Map json) = _$DailyNutritionImpl.fromJson; @override @JsonKey(name: 'energy') double get energy; @override @JsonKey(name: 'proteins') double get proteins; @override @JsonKey(name: 'fats') double get fats; @override @JsonKey(name: 'carbohydrates') double get carbohydrates; /// Create a copy of DailyNutrition /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DailyNutritionImplCopyWith<_$DailyNutritionImpl> get copyWith => throw _privateConstructorUsedError; }