// 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 'diary_day_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'); DiaryDayWrapperModel _$DiaryDayWrapperModelFromJson(Map json) { return _DiaryDayWrapperModel.fromJson(json); } /// @nodoc mixin _$DiaryDayWrapperModel { @JsonKey(name: "diary") DiaryDayModel get diary => throw _privateConstructorUsedError; /// Serializes this DiaryDayWrapperModel to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of DiaryDayWrapperModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DiaryDayWrapperModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DiaryDayWrapperModelCopyWith<$Res> { factory $DiaryDayWrapperModelCopyWith(DiaryDayWrapperModel value, $Res Function(DiaryDayWrapperModel) then) = _$DiaryDayWrapperModelCopyWithImpl<$Res, DiaryDayWrapperModel>; @useResult $Res call({@JsonKey(name: "diary") DiaryDayModel diary}); $DiaryDayModelCopyWith<$Res> get diary; } /// @nodoc class _$DiaryDayWrapperModelCopyWithImpl<$Res, $Val extends DiaryDayWrapperModel> implements $DiaryDayWrapperModelCopyWith<$Res> { _$DiaryDayWrapperModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DiaryDayWrapperModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? diary = null, }) { return _then(_value.copyWith( diary: null == diary ? _value.diary : diary // ignore: cast_nullable_to_non_nullable as DiaryDayModel, ) as $Val); } /// Create a copy of DiaryDayWrapperModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $DiaryDayModelCopyWith<$Res> get diary { return $DiaryDayModelCopyWith<$Res>(_value.diary, (value) { return _then(_value.copyWith(diary: value) as $Val); }); } } /// @nodoc abstract class _$$DiaryDayWrapperModelImplCopyWith<$Res> implements $DiaryDayWrapperModelCopyWith<$Res> { factory _$$DiaryDayWrapperModelImplCopyWith(_$DiaryDayWrapperModelImpl value, $Res Function(_$DiaryDayWrapperModelImpl) then) = __$$DiaryDayWrapperModelImplCopyWithImpl<$Res>; @override @useResult $Res call({@JsonKey(name: "diary") DiaryDayModel diary}); @override $DiaryDayModelCopyWith<$Res> get diary; } /// @nodoc class __$$DiaryDayWrapperModelImplCopyWithImpl<$Res> extends _$DiaryDayWrapperModelCopyWithImpl<$Res, _$DiaryDayWrapperModelImpl> implements _$$DiaryDayWrapperModelImplCopyWith<$Res> { __$$DiaryDayWrapperModelImplCopyWithImpl(_$DiaryDayWrapperModelImpl _value, $Res Function(_$DiaryDayWrapperModelImpl) _then) : super(_value, _then); /// Create a copy of DiaryDayWrapperModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? diary = null, }) { return _then(_$DiaryDayWrapperModelImpl( diary: null == diary ? _value.diary : diary // ignore: cast_nullable_to_non_nullable as DiaryDayModel, )); } } /// @nodoc @JsonSerializable() class _$DiaryDayWrapperModelImpl implements _DiaryDayWrapperModel { const _$DiaryDayWrapperModelImpl( {@JsonKey(name: "diary") required this.diary}); factory _$DiaryDayWrapperModelImpl.fromJson(Map json) => _$$DiaryDayWrapperModelImplFromJson(json); @override @JsonKey(name: "diary") final DiaryDayModel diary; @override String toString() { return 'DiaryDayWrapperModel(diary: $diary)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DiaryDayWrapperModelImpl && (identical(other.diary, diary) || other.diary == diary)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, diary); /// Create a copy of DiaryDayWrapperModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DiaryDayWrapperModelImplCopyWith<_$DiaryDayWrapperModelImpl> get copyWith => __$$DiaryDayWrapperModelImplCopyWithImpl<_$DiaryDayWrapperModelImpl>( this, _$identity); @override Map toJson() { return _$$DiaryDayWrapperModelImplToJson( this, ); } } abstract class _DiaryDayWrapperModel implements DiaryDayWrapperModel { const factory _DiaryDayWrapperModel( {@JsonKey(name: "diary") required final DiaryDayModel diary}) = _$DiaryDayWrapperModelImpl; factory _DiaryDayWrapperModel.fromJson(Map json) = _$DiaryDayWrapperModelImpl.fromJson; @override @JsonKey(name: "diary") DiaryDayModel get diary; /// Create a copy of DiaryDayWrapperModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DiaryDayWrapperModelImplCopyWith<_$DiaryDayWrapperModelImpl> get copyWith => throw _privateConstructorUsedError; } DiaryDayModel _$DiaryDayModelFromJson(Map json) { return _DiaryDayModel.fromJson(json); } /// @nodoc mixin _$DiaryDayModel { @JsonKey(name: "id") int get id => throw _privateConstructorUsedError; @JsonKey(name: "date") String get date => throw _privateConstructorUsedError; @JsonKey(name: "wakeup") String? get wakeup => throw _privateConstructorUsedError; @JsonKey(name: "retire") String? get retire => throw _privateConstructorUsedError; @JsonKey(name: "closed") int get closed => throw _privateConstructorUsedError; @JsonKey(name: "comment") String get comment => throw _privateConstructorUsedError; @JsonKey(name: "state") TypeOfDiaryModel get typeOfDiary => throw _privateConstructorUsedError; @JsonKey(name: "meals") List get meals => throw _privateConstructorUsedError; /// Serializes this DiaryDayModel to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of DiaryDayModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DiaryDayModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DiaryDayModelCopyWith<$Res> { factory $DiaryDayModelCopyWith( DiaryDayModel value, $Res Function(DiaryDayModel) then) = _$DiaryDayModelCopyWithImpl<$Res, DiaryDayModel>; @useResult $Res call( {@JsonKey(name: "id") int id, @JsonKey(name: "date") String date, @JsonKey(name: "wakeup") String? wakeup, @JsonKey(name: "retire") String? retire, @JsonKey(name: "closed") int closed, @JsonKey(name: "comment") String comment, @JsonKey(name: "state") TypeOfDiaryModel typeOfDiary, @JsonKey(name: "meals") List meals}); $TypeOfDiaryModelCopyWith<$Res> get typeOfDiary; } /// @nodoc class _$DiaryDayModelCopyWithImpl<$Res, $Val extends DiaryDayModel> implements $DiaryDayModelCopyWith<$Res> { _$DiaryDayModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DiaryDayModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? date = null, Object? wakeup = freezed, Object? retire = freezed, Object? closed = null, Object? comment = null, Object? typeOfDiary = null, Object? meals = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as String, wakeup: freezed == wakeup ? _value.wakeup : wakeup // ignore: cast_nullable_to_non_nullable as String?, retire: freezed == retire ? _value.retire : retire // ignore: cast_nullable_to_non_nullable as String?, closed: null == closed ? _value.closed : closed // ignore: cast_nullable_to_non_nullable as int, comment: null == comment ? _value.comment : comment // ignore: cast_nullable_to_non_nullable as String, typeOfDiary: null == typeOfDiary ? _value.typeOfDiary : typeOfDiary // ignore: cast_nullable_to_non_nullable as TypeOfDiaryModel, meals: null == meals ? _value.meals : meals // ignore: cast_nullable_to_non_nullable as List, ) as $Val); } /// Create a copy of DiaryDayModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $TypeOfDiaryModelCopyWith<$Res> get typeOfDiary { return $TypeOfDiaryModelCopyWith<$Res>(_value.typeOfDiary, (value) { return _then(_value.copyWith(typeOfDiary: value) as $Val); }); } } /// @nodoc abstract class _$$DiaryDayModelImplCopyWith<$Res> implements $DiaryDayModelCopyWith<$Res> { factory _$$DiaryDayModelImplCopyWith( _$DiaryDayModelImpl value, $Res Function(_$DiaryDayModelImpl) then) = __$$DiaryDayModelImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "id") int id, @JsonKey(name: "date") String date, @JsonKey(name: "wakeup") String? wakeup, @JsonKey(name: "retire") String? retire, @JsonKey(name: "closed") int closed, @JsonKey(name: "comment") String comment, @JsonKey(name: "state") TypeOfDiaryModel typeOfDiary, @JsonKey(name: "meals") List meals}); @override $TypeOfDiaryModelCopyWith<$Res> get typeOfDiary; } /// @nodoc class __$$DiaryDayModelImplCopyWithImpl<$Res> extends _$DiaryDayModelCopyWithImpl<$Res, _$DiaryDayModelImpl> implements _$$DiaryDayModelImplCopyWith<$Res> { __$$DiaryDayModelImplCopyWithImpl( _$DiaryDayModelImpl _value, $Res Function(_$DiaryDayModelImpl) _then) : super(_value, _then); /// Create a copy of DiaryDayModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? date = null, Object? wakeup = freezed, Object? retire = freezed, Object? closed = null, Object? comment = null, Object? typeOfDiary = null, Object? meals = null, }) { return _then(_$DiaryDayModelImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as String, wakeup: freezed == wakeup ? _value.wakeup : wakeup // ignore: cast_nullable_to_non_nullable as String?, retire: freezed == retire ? _value.retire : retire // ignore: cast_nullable_to_non_nullable as String?, closed: null == closed ? _value.closed : closed // ignore: cast_nullable_to_non_nullable as int, comment: null == comment ? _value.comment : comment // ignore: cast_nullable_to_non_nullable as String, typeOfDiary: null == typeOfDiary ? _value.typeOfDiary : typeOfDiary // ignore: cast_nullable_to_non_nullable as TypeOfDiaryModel, meals: null == meals ? _value._meals : meals // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc @JsonSerializable() class _$DiaryDayModelImpl implements _DiaryDayModel { const _$DiaryDayModelImpl( {@JsonKey(name: "id") required this.id, @JsonKey(name: "date") required this.date, @JsonKey(name: "wakeup") this.wakeup, @JsonKey(name: "retire") this.retire, @JsonKey(name: "closed") required this.closed, @JsonKey(name: "comment") required this.comment, @JsonKey(name: "state") required this.typeOfDiary, @JsonKey(name: "meals") required final List meals}) : _meals = meals; factory _$DiaryDayModelImpl.fromJson(Map json) => _$$DiaryDayModelImplFromJson(json); @override @JsonKey(name: "id") final int id; @override @JsonKey(name: "date") final String date; @override @JsonKey(name: "wakeup") final String? wakeup; @override @JsonKey(name: "retire") final String? retire; @override @JsonKey(name: "closed") final int closed; @override @JsonKey(name: "comment") final String comment; @override @JsonKey(name: "state") final TypeOfDiaryModel typeOfDiary; final List _meals; @override @JsonKey(name: "meals") List get meals { if (_meals is EqualUnmodifiableListView) return _meals; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_meals); } @override String toString() { return 'DiaryDayModel(id: $id, date: $date, wakeup: $wakeup, retire: $retire, closed: $closed, comment: $comment, typeOfDiary: $typeOfDiary, meals: $meals)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DiaryDayModelImpl && (identical(other.id, id) || other.id == id) && (identical(other.date, date) || other.date == date) && (identical(other.wakeup, wakeup) || other.wakeup == wakeup) && (identical(other.retire, retire) || other.retire == retire) && (identical(other.closed, closed) || other.closed == closed) && (identical(other.comment, comment) || other.comment == comment) && (identical(other.typeOfDiary, typeOfDiary) || other.typeOfDiary == typeOfDiary) && const DeepCollectionEquality().equals(other._meals, _meals)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, date, wakeup, retire, closed, comment, typeOfDiary, const DeepCollectionEquality().hash(_meals)); /// Create a copy of DiaryDayModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DiaryDayModelImplCopyWith<_$DiaryDayModelImpl> get copyWith => __$$DiaryDayModelImplCopyWithImpl<_$DiaryDayModelImpl>(this, _$identity); @override Map toJson() { return _$$DiaryDayModelImplToJson( this, ); } } abstract class _DiaryDayModel implements DiaryDayModel { const factory _DiaryDayModel( {@JsonKey(name: "id") required final int id, @JsonKey(name: "date") required final String date, @JsonKey(name: "wakeup") final String? wakeup, @JsonKey(name: "retire") final String? retire, @JsonKey(name: "closed") required final int closed, @JsonKey(name: "comment") required final String comment, @JsonKey(name: "state") required final TypeOfDiaryModel typeOfDiary, @JsonKey(name: "meals") required final List meals}) = _$DiaryDayModelImpl; factory _DiaryDayModel.fromJson(Map json) = _$DiaryDayModelImpl.fromJson; @override @JsonKey(name: "id") int get id; @override @JsonKey(name: "date") String get date; @override @JsonKey(name: "wakeup") String? get wakeup; @override @JsonKey(name: "retire") String? get retire; @override @JsonKey(name: "closed") int get closed; @override @JsonKey(name: "comment") String get comment; @override @JsonKey(name: "state") TypeOfDiaryModel get typeOfDiary; @override @JsonKey(name: "meals") List get meals; /// Create a copy of DiaryDayModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DiaryDayModelImplCopyWith<_$DiaryDayModelImpl> get copyWith => throw _privateConstructorUsedError; } MealModel _$MealModelFromJson(Map json) { return _MealModel.fromJson(json); } /// @nodoc mixin _$MealModel { @JsonKey(name: "id") int get id => throw _privateConstructorUsedError; @JsonKey(name: "time") String get time => throw _privateConstructorUsedError; @JsonKey(name: "type_no") int get typeNumber => throw _privateConstructorUsedError; @JsonKey(name: "satiety") int get satiety => throw _privateConstructorUsedError; @JsonKey(name: "mood") int get mood => throw _privateConstructorUsedError; @JsonKey(name: "portions") List get portions => throw _privateConstructorUsedError; @JsonKey(name: "photos") List get photos => throw _privateConstructorUsedError; /// Serializes this MealModel to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of MealModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $MealModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $MealModelCopyWith<$Res> { factory $MealModelCopyWith(MealModel value, $Res Function(MealModel) then) = _$MealModelCopyWithImpl<$Res, MealModel>; @useResult $Res call( {@JsonKey(name: "id") int id, @JsonKey(name: "time") String time, @JsonKey(name: "type_no") int typeNumber, @JsonKey(name: "satiety") int satiety, @JsonKey(name: "mood") int mood, @JsonKey(name: "portions") List portions, @JsonKey(name: "photos") List photos}); } /// @nodoc class _$MealModelCopyWithImpl<$Res, $Val extends MealModel> implements $MealModelCopyWith<$Res> { _$MealModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of MealModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? time = null, Object? typeNumber = null, Object? satiety = null, Object? mood = null, Object? portions = null, Object? photos = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, time: null == time ? _value.time : time // ignore: cast_nullable_to_non_nullable as String, typeNumber: null == typeNumber ? _value.typeNumber : typeNumber // ignore: cast_nullable_to_non_nullable as int, satiety: null == satiety ? _value.satiety : satiety // ignore: cast_nullable_to_non_nullable as int, mood: null == mood ? _value.mood : mood // ignore: cast_nullable_to_non_nullable as int, portions: null == portions ? _value.portions : portions // ignore: cast_nullable_to_non_nullable as List, photos: null == photos ? _value.photos : photos // ignore: cast_nullable_to_non_nullable as List, ) as $Val); } } /// @nodoc abstract class _$$MealModelImplCopyWith<$Res> implements $MealModelCopyWith<$Res> { factory _$$MealModelImplCopyWith( _$MealModelImpl value, $Res Function(_$MealModelImpl) then) = __$$MealModelImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "id") int id, @JsonKey(name: "time") String time, @JsonKey(name: "type_no") int typeNumber, @JsonKey(name: "satiety") int satiety, @JsonKey(name: "mood") int mood, @JsonKey(name: "portions") List portions, @JsonKey(name: "photos") List photos}); } /// @nodoc class __$$MealModelImplCopyWithImpl<$Res> extends _$MealModelCopyWithImpl<$Res, _$MealModelImpl> implements _$$MealModelImplCopyWith<$Res> { __$$MealModelImplCopyWithImpl( _$MealModelImpl _value, $Res Function(_$MealModelImpl) _then) : super(_value, _then); /// Create a copy of MealModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? time = null, Object? typeNumber = null, Object? satiety = null, Object? mood = null, Object? portions = null, Object? photos = null, }) { return _then(_$MealModelImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, time: null == time ? _value.time : time // ignore: cast_nullable_to_non_nullable as String, typeNumber: null == typeNumber ? _value.typeNumber : typeNumber // ignore: cast_nullable_to_non_nullable as int, satiety: null == satiety ? _value.satiety : satiety // ignore: cast_nullable_to_non_nullable as int, mood: null == mood ? _value.mood : mood // ignore: cast_nullable_to_non_nullable as int, portions: null == portions ? _value._portions : portions // ignore: cast_nullable_to_non_nullable as List, photos: null == photos ? _value._photos : photos // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc @JsonSerializable() class _$MealModelImpl implements _MealModel { const _$MealModelImpl( {@JsonKey(name: "id") required this.id, @JsonKey(name: "time") required this.time, @JsonKey(name: "type_no") required this.typeNumber, @JsonKey(name: "satiety") required this.satiety, @JsonKey(name: "mood") required this.mood, @JsonKey(name: "portions") required final List portions, @JsonKey(name: "photos") required final List photos}) : _portions = portions, _photos = photos; factory _$MealModelImpl.fromJson(Map json) => _$$MealModelImplFromJson(json); @override @JsonKey(name: "id") final int id; @override @JsonKey(name: "time") final String time; @override @JsonKey(name: "type_no") final int typeNumber; @override @JsonKey(name: "satiety") final int satiety; @override @JsonKey(name: "mood") final int mood; final List _portions; @override @JsonKey(name: "portions") List get portions { if (_portions is EqualUnmodifiableListView) return _portions; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_portions); } final List _photos; @override @JsonKey(name: "photos") List get photos { if (_photos is EqualUnmodifiableListView) return _photos; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_photos); } @override String toString() { return 'MealModel(id: $id, time: $time, typeNumber: $typeNumber, satiety: $satiety, mood: $mood, portions: $portions, photos: $photos)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$MealModelImpl && (identical(other.id, id) || other.id == id) && (identical(other.time, time) || other.time == time) && (identical(other.typeNumber, typeNumber) || other.typeNumber == typeNumber) && (identical(other.satiety, satiety) || other.satiety == satiety) && (identical(other.mood, mood) || other.mood == mood) && const DeepCollectionEquality().equals(other._portions, _portions) && const DeepCollectionEquality().equals(other._photos, _photos)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, id, time, typeNumber, satiety, mood, const DeepCollectionEquality().hash(_portions), const DeepCollectionEquality().hash(_photos)); /// Create a copy of MealModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$MealModelImplCopyWith<_$MealModelImpl> get copyWith => __$$MealModelImplCopyWithImpl<_$MealModelImpl>(this, _$identity); @override Map toJson() { return _$$MealModelImplToJson( this, ); } } abstract class _MealModel implements MealModel { const factory _MealModel( {@JsonKey(name: "id") required final int id, @JsonKey(name: "time") required final String time, @JsonKey(name: "type_no") required final int typeNumber, @JsonKey(name: "satiety") required final int satiety, @JsonKey(name: "mood") required final int mood, @JsonKey(name: "portions") required final List portions, @JsonKey(name: "photos") required final List photos}) = _$MealModelImpl; factory _MealModel.fromJson(Map json) = _$MealModelImpl.fromJson; @override @JsonKey(name: "id") int get id; @override @JsonKey(name: "time") String get time; @override @JsonKey(name: "type_no") int get typeNumber; @override @JsonKey(name: "satiety") int get satiety; @override @JsonKey(name: "mood") int get mood; @override @JsonKey(name: "portions") List get portions; @override @JsonKey(name: "photos") List get photos; /// Create a copy of MealModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$MealModelImplCopyWith<_$MealModelImpl> get copyWith => throw _privateConstructorUsedError; } DiaryPhotoModel _$DiaryPhotoModelFromJson(Map json) { return _DiaryPhotoModel.fromJson(json); } /// @nodoc mixin _$DiaryPhotoModel { @JsonKey(name: "id") int get id => throw _privateConstructorUsedError; @JsonKey(name: "original_name") String get originalName => throw _privateConstructorUsedError; @JsonKey(name: "path") String get path => throw _privateConstructorUsedError; @JsonKey(name: "size") int get size => throw _privateConstructorUsedError; /// Serializes this DiaryPhotoModel to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of DiaryPhotoModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $DiaryPhotoModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DiaryPhotoModelCopyWith<$Res> { factory $DiaryPhotoModelCopyWith( DiaryPhotoModel value, $Res Function(DiaryPhotoModel) then) = _$DiaryPhotoModelCopyWithImpl<$Res, DiaryPhotoModel>; @useResult $Res call( {@JsonKey(name: "id") int id, @JsonKey(name: "original_name") String originalName, @JsonKey(name: "path") String path, @JsonKey(name: "size") int size}); } /// @nodoc class _$DiaryPhotoModelCopyWithImpl<$Res, $Val extends DiaryPhotoModel> implements $DiaryPhotoModelCopyWith<$Res> { _$DiaryPhotoModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of DiaryPhotoModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? originalName = null, Object? path = null, Object? size = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, originalName: null == originalName ? _value.originalName : originalName // ignore: cast_nullable_to_non_nullable as String, path: null == path ? _value.path : path // ignore: cast_nullable_to_non_nullable as String, size: null == size ? _value.size : size // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } } /// @nodoc abstract class _$$DiaryPhotoModelImplCopyWith<$Res> implements $DiaryPhotoModelCopyWith<$Res> { factory _$$DiaryPhotoModelImplCopyWith(_$DiaryPhotoModelImpl value, $Res Function(_$DiaryPhotoModelImpl) then) = __$$DiaryPhotoModelImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "id") int id, @JsonKey(name: "original_name") String originalName, @JsonKey(name: "path") String path, @JsonKey(name: "size") int size}); } /// @nodoc class __$$DiaryPhotoModelImplCopyWithImpl<$Res> extends _$DiaryPhotoModelCopyWithImpl<$Res, _$DiaryPhotoModelImpl> implements _$$DiaryPhotoModelImplCopyWith<$Res> { __$$DiaryPhotoModelImplCopyWithImpl( _$DiaryPhotoModelImpl _value, $Res Function(_$DiaryPhotoModelImpl) _then) : super(_value, _then); /// Create a copy of DiaryPhotoModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? originalName = null, Object? path = null, Object? size = null, }) { return _then(_$DiaryPhotoModelImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, originalName: null == originalName ? _value.originalName : originalName // ignore: cast_nullable_to_non_nullable as String, path: null == path ? _value.path : path // ignore: cast_nullable_to_non_nullable as String, size: null == size ? _value.size : size // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc @JsonSerializable() class _$DiaryPhotoModelImpl implements _DiaryPhotoModel { const _$DiaryPhotoModelImpl( {@JsonKey(name: "id") required this.id, @JsonKey(name: "original_name") required this.originalName, @JsonKey(name: "path") required this.path, @JsonKey(name: "size") required this.size}); factory _$DiaryPhotoModelImpl.fromJson(Map json) => _$$DiaryPhotoModelImplFromJson(json); @override @JsonKey(name: "id") final int id; @override @JsonKey(name: "original_name") final String originalName; @override @JsonKey(name: "path") final String path; @override @JsonKey(name: "size") final int size; @override String toString() { return 'DiaryPhotoModel(id: $id, originalName: $originalName, path: $path, size: $size)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DiaryPhotoModelImpl && (identical(other.id, id) || other.id == id) && (identical(other.originalName, originalName) || other.originalName == originalName) && (identical(other.path, path) || other.path == path) && (identical(other.size, size) || other.size == size)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, originalName, path, size); /// Create a copy of DiaryPhotoModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$DiaryPhotoModelImplCopyWith<_$DiaryPhotoModelImpl> get copyWith => __$$DiaryPhotoModelImplCopyWithImpl<_$DiaryPhotoModelImpl>( this, _$identity); @override Map toJson() { return _$$DiaryPhotoModelImplToJson( this, ); } } abstract class _DiaryPhotoModel implements DiaryPhotoModel { const factory _DiaryPhotoModel( {@JsonKey(name: "id") required final int id, @JsonKey(name: "original_name") required final String originalName, @JsonKey(name: "path") required final String path, @JsonKey(name: "size") required final int size}) = _$DiaryPhotoModelImpl; factory _DiaryPhotoModel.fromJson(Map json) = _$DiaryPhotoModelImpl.fromJson; @override @JsonKey(name: "id") int get id; @override @JsonKey(name: "original_name") String get originalName; @override @JsonKey(name: "path") String get path; @override @JsonKey(name: "size") int get size; /// Create a copy of DiaryPhotoModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$DiaryPhotoModelImplCopyWith<_$DiaryPhotoModelImpl> get copyWith => throw _privateConstructorUsedError; } PortionModel _$PortionModelFromJson(Map json) { return _PortionModel.fromJson(json); } /// @nodoc mixin _$PortionModel { @JsonKey(name: "id") int get id => throw _privateConstructorUsedError; @JsonKey(name: "product_nutritional_value_id") int? get productNutritionalValueId => throw _privateConstructorUsedError; @JsonKey(name: "product_name") String get productName => throw _privateConstructorUsedError; @JsonKey(name: "quantity") int get quantity => throw _privateConstructorUsedError; @JsonKey(name: "portion") String get portion => throw _privateConstructorUsedError; @JsonKey(name: "from_diet") bool get fromDiet => throw _privateConstructorUsedError; @JsonKey(name: "state") PortionState get portionState => throw _privateConstructorUsedError; /// Serializes this PortionModel to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of PortionModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PortionModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PortionModelCopyWith<$Res> { factory $PortionModelCopyWith( PortionModel value, $Res Function(PortionModel) then) = _$PortionModelCopyWithImpl<$Res, PortionModel>; @useResult $Res call( {@JsonKey(name: "id") int id, @JsonKey(name: "product_nutritional_value_id") int? productNutritionalValueId, @JsonKey(name: "product_name") String productName, @JsonKey(name: "quantity") int quantity, @JsonKey(name: "portion") String portion, @JsonKey(name: "from_diet") bool fromDiet, @JsonKey(name: "state") PortionState portionState}); } /// @nodoc class _$PortionModelCopyWithImpl<$Res, $Val extends PortionModel> implements $PortionModelCopyWith<$Res> { _$PortionModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of PortionModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? productNutritionalValueId = freezed, Object? productName = null, Object? quantity = null, Object? portion = null, Object? fromDiet = null, Object? portionState = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, productNutritionalValueId: freezed == productNutritionalValueId ? _value.productNutritionalValueId : productNutritionalValueId // ignore: cast_nullable_to_non_nullable as int?, productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, portion: null == portion ? _value.portion : portion // ignore: cast_nullable_to_non_nullable as String, fromDiet: null == fromDiet ? _value.fromDiet : fromDiet // ignore: cast_nullable_to_non_nullable as bool, portionState: null == portionState ? _value.portionState : portionState // ignore: cast_nullable_to_non_nullable as PortionState, ) as $Val); } } /// @nodoc abstract class _$$PortionModelImplCopyWith<$Res> implements $PortionModelCopyWith<$Res> { factory _$$PortionModelImplCopyWith( _$PortionModelImpl value, $Res Function(_$PortionModelImpl) then) = __$$PortionModelImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "id") int id, @JsonKey(name: "product_nutritional_value_id") int? productNutritionalValueId, @JsonKey(name: "product_name") String productName, @JsonKey(name: "quantity") int quantity, @JsonKey(name: "portion") String portion, @JsonKey(name: "from_diet") bool fromDiet, @JsonKey(name: "state") PortionState portionState}); } /// @nodoc class __$$PortionModelImplCopyWithImpl<$Res> extends _$PortionModelCopyWithImpl<$Res, _$PortionModelImpl> implements _$$PortionModelImplCopyWith<$Res> { __$$PortionModelImplCopyWithImpl( _$PortionModelImpl _value, $Res Function(_$PortionModelImpl) _then) : super(_value, _then); /// Create a copy of PortionModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? productNutritionalValueId = freezed, Object? productName = null, Object? quantity = null, Object? portion = null, Object? fromDiet = null, Object? portionState = null, }) { return _then(_$PortionModelImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, productNutritionalValueId: freezed == productNutritionalValueId ? _value.productNutritionalValueId : productNutritionalValueId // ignore: cast_nullable_to_non_nullable as int?, productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, portion: null == portion ? _value.portion : portion // ignore: cast_nullable_to_non_nullable as String, fromDiet: null == fromDiet ? _value.fromDiet : fromDiet // ignore: cast_nullable_to_non_nullable as bool, portionState: null == portionState ? _value.portionState : portionState // ignore: cast_nullable_to_non_nullable as PortionState, )); } } /// @nodoc @JsonSerializable() class _$PortionModelImpl implements _PortionModel { const _$PortionModelImpl( {@JsonKey(name: "id") required this.id, @JsonKey(name: "product_nutritional_value_id") this.productNutritionalValueId, @JsonKey(name: "product_name") required this.productName, @JsonKey(name: "quantity") required this.quantity, @JsonKey(name: "portion") required this.portion, @JsonKey(name: "from_diet") required this.fromDiet, @JsonKey(name: "state") required this.portionState}); factory _$PortionModelImpl.fromJson(Map json) => _$$PortionModelImplFromJson(json); @override @JsonKey(name: "id") final int id; @override @JsonKey(name: "product_nutritional_value_id") final int? productNutritionalValueId; @override @JsonKey(name: "product_name") final String productName; @override @JsonKey(name: "quantity") final int quantity; @override @JsonKey(name: "portion") final String portion; @override @JsonKey(name: "from_diet") final bool fromDiet; @override @JsonKey(name: "state") final PortionState portionState; @override String toString() { return 'PortionModel(id: $id, productNutritionalValueId: $productNutritionalValueId, productName: $productName, quantity: $quantity, portion: $portion, fromDiet: $fromDiet, portionState: $portionState)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PortionModelImpl && (identical(other.id, id) || other.id == id) && (identical(other.productNutritionalValueId, productNutritionalValueId) || other.productNutritionalValueId == productNutritionalValueId) && (identical(other.productName, productName) || other.productName == productName) && (identical(other.quantity, quantity) || other.quantity == quantity) && (identical(other.portion, portion) || other.portion == portion) && (identical(other.fromDiet, fromDiet) || other.fromDiet == fromDiet) && (identical(other.portionState, portionState) || other.portionState == portionState)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, productNutritionalValueId, productName, quantity, portion, fromDiet, portionState); /// Create a copy of PortionModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PortionModelImplCopyWith<_$PortionModelImpl> get copyWith => __$$PortionModelImplCopyWithImpl<_$PortionModelImpl>(this, _$identity); @override Map toJson() { return _$$PortionModelImplToJson( this, ); } } abstract class _PortionModel implements PortionModel { const factory _PortionModel( {@JsonKey(name: "id") required final int id, @JsonKey(name: "product_nutritional_value_id") final int? productNutritionalValueId, @JsonKey(name: "product_name") required final String productName, @JsonKey(name: "quantity") required final int quantity, @JsonKey(name: "portion") required final String portion, @JsonKey(name: "from_diet") required final bool fromDiet, @JsonKey(name: "state") required final PortionState portionState}) = _$PortionModelImpl; factory _PortionModel.fromJson(Map json) = _$PortionModelImpl.fromJson; @override @JsonKey(name: "id") int get id; @override @JsonKey(name: "product_nutritional_value_id") int? get productNutritionalValueId; @override @JsonKey(name: "product_name") String get productName; @override @JsonKey(name: "quantity") int get quantity; @override @JsonKey(name: "portion") String get portion; @override @JsonKey(name: "from_diet") bool get fromDiet; @override @JsonKey(name: "state") PortionState get portionState; /// Create a copy of PortionModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$PortionModelImplCopyWith<_$PortionModelImpl> get copyWith => throw _privateConstructorUsedError; } TypeOfDiaryModel _$TypeOfDiaryModelFromJson(Map json) { return _TypeOfDiaryModel.fromJson(json); } /// @nodoc mixin _$TypeOfDiaryModel { @JsonKey(name: "has_chosen_diet") bool get hasChosenDiet => throw _privateConstructorUsedError; @JsonKey(name: "has_chosen_plan") bool get hasChosenPlan => throw _privateConstructorUsedError; /// Serializes this TypeOfDiaryModel to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of TypeOfDiaryModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $TypeOfDiaryModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $TypeOfDiaryModelCopyWith<$Res> { factory $TypeOfDiaryModelCopyWith( TypeOfDiaryModel value, $Res Function(TypeOfDiaryModel) then) = _$TypeOfDiaryModelCopyWithImpl<$Res, TypeOfDiaryModel>; @useResult $Res call( {@JsonKey(name: "has_chosen_diet") bool hasChosenDiet, @JsonKey(name: "has_chosen_plan") bool hasChosenPlan}); } /// @nodoc class _$TypeOfDiaryModelCopyWithImpl<$Res, $Val extends TypeOfDiaryModel> implements $TypeOfDiaryModelCopyWith<$Res> { _$TypeOfDiaryModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of TypeOfDiaryModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? hasChosenDiet = null, Object? hasChosenPlan = null, }) { return _then(_value.copyWith( hasChosenDiet: null == hasChosenDiet ? _value.hasChosenDiet : hasChosenDiet // ignore: cast_nullable_to_non_nullable as bool, hasChosenPlan: null == hasChosenPlan ? _value.hasChosenPlan : hasChosenPlan // ignore: cast_nullable_to_non_nullable as bool, ) as $Val); } } /// @nodoc abstract class _$$TypeOfDiaryModelImplCopyWith<$Res> implements $TypeOfDiaryModelCopyWith<$Res> { factory _$$TypeOfDiaryModelImplCopyWith(_$TypeOfDiaryModelImpl value, $Res Function(_$TypeOfDiaryModelImpl) then) = __$$TypeOfDiaryModelImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: "has_chosen_diet") bool hasChosenDiet, @JsonKey(name: "has_chosen_plan") bool hasChosenPlan}); } /// @nodoc class __$$TypeOfDiaryModelImplCopyWithImpl<$Res> extends _$TypeOfDiaryModelCopyWithImpl<$Res, _$TypeOfDiaryModelImpl> implements _$$TypeOfDiaryModelImplCopyWith<$Res> { __$$TypeOfDiaryModelImplCopyWithImpl(_$TypeOfDiaryModelImpl _value, $Res Function(_$TypeOfDiaryModelImpl) _then) : super(_value, _then); /// Create a copy of TypeOfDiaryModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? hasChosenDiet = null, Object? hasChosenPlan = null, }) { return _then(_$TypeOfDiaryModelImpl( hasChosenDiet: null == hasChosenDiet ? _value.hasChosenDiet : hasChosenDiet // ignore: cast_nullable_to_non_nullable as bool, hasChosenPlan: null == hasChosenPlan ? _value.hasChosenPlan : hasChosenPlan // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc @JsonSerializable() class _$TypeOfDiaryModelImpl implements _TypeOfDiaryModel { const _$TypeOfDiaryModelImpl( {@JsonKey(name: "has_chosen_diet") required this.hasChosenDiet, @JsonKey(name: "has_chosen_plan") required this.hasChosenPlan}); factory _$TypeOfDiaryModelImpl.fromJson(Map json) => _$$TypeOfDiaryModelImplFromJson(json); @override @JsonKey(name: "has_chosen_diet") final bool hasChosenDiet; @override @JsonKey(name: "has_chosen_plan") final bool hasChosenPlan; @override String toString() { return 'TypeOfDiaryModel(hasChosenDiet: $hasChosenDiet, hasChosenPlan: $hasChosenPlan)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TypeOfDiaryModelImpl && (identical(other.hasChosenDiet, hasChosenDiet) || other.hasChosenDiet == hasChosenDiet) && (identical(other.hasChosenPlan, hasChosenPlan) || other.hasChosenPlan == hasChosenPlan)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, hasChosenDiet, hasChosenPlan); /// Create a copy of TypeOfDiaryModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$TypeOfDiaryModelImplCopyWith<_$TypeOfDiaryModelImpl> get copyWith => __$$TypeOfDiaryModelImplCopyWithImpl<_$TypeOfDiaryModelImpl>( this, _$identity); @override Map toJson() { return _$$TypeOfDiaryModelImplToJson( this, ); } } abstract class _TypeOfDiaryModel implements TypeOfDiaryModel { const factory _TypeOfDiaryModel( {@JsonKey(name: "has_chosen_diet") required final bool hasChosenDiet, @JsonKey(name: "has_chosen_plan") required final bool hasChosenPlan}) = _$TypeOfDiaryModelImpl; factory _TypeOfDiaryModel.fromJson(Map json) = _$TypeOfDiaryModelImpl.fromJson; @override @JsonKey(name: "has_chosen_diet") bool get hasChosenDiet; @override @JsonKey(name: "has_chosen_plan") bool get hasChosenPlan; /// Create a copy of TypeOfDiaryModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$TypeOfDiaryModelImplCopyWith<_$TypeOfDiaryModelImpl> get copyWith => throw _privateConstructorUsedError; } ProductInMeal _$ProductInMealFromJson(Map json) { return _ProductInMeal.fromJson(json); } /// @nodoc mixin _$ProductInMeal { @JsonKey(name: 'product_name') String get productName => throw _privateConstructorUsedError; @JsonKey(name: 'portion') String get portion => throw _privateConstructorUsedError; @JsonKey(name: 'quantity') int get quantity => throw _privateConstructorUsedError; /// Serializes this ProductInMeal to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ProductInMeal /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ProductInMealCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProductInMealCopyWith<$Res> { factory $ProductInMealCopyWith( ProductInMeal value, $Res Function(ProductInMeal) then) = _$ProductInMealCopyWithImpl<$Res, ProductInMeal>; @useResult $Res call( {@JsonKey(name: 'product_name') String productName, @JsonKey(name: 'portion') String portion, @JsonKey(name: 'quantity') int quantity}); } /// @nodoc class _$ProductInMealCopyWithImpl<$Res, $Val extends ProductInMeal> implements $ProductInMealCopyWith<$Res> { _$ProductInMealCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ProductInMeal /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? productName = null, Object? portion = null, Object? quantity = null, }) { return _then(_value.copyWith( productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, portion: null == portion ? _value.portion : portion // ignore: cast_nullable_to_non_nullable as String, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } } /// @nodoc abstract class _$$ProductInMealImplCopyWith<$Res> implements $ProductInMealCopyWith<$Res> { factory _$$ProductInMealImplCopyWith( _$ProductInMealImpl value, $Res Function(_$ProductInMealImpl) then) = __$$ProductInMealImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: 'product_name') String productName, @JsonKey(name: 'portion') String portion, @JsonKey(name: 'quantity') int quantity}); } /// @nodoc class __$$ProductInMealImplCopyWithImpl<$Res> extends _$ProductInMealCopyWithImpl<$Res, _$ProductInMealImpl> implements _$$ProductInMealImplCopyWith<$Res> { __$$ProductInMealImplCopyWithImpl( _$ProductInMealImpl _value, $Res Function(_$ProductInMealImpl) _then) : super(_value, _then); /// Create a copy of ProductInMeal /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? productName = null, Object? portion = null, Object? quantity = null, }) { return _then(_$ProductInMealImpl( productName: null == productName ? _value.productName : productName // ignore: cast_nullable_to_non_nullable as String, portion: null == portion ? _value.portion : portion // ignore: cast_nullable_to_non_nullable as String, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc @JsonSerializable() class _$ProductInMealImpl implements _ProductInMeal { const _$ProductInMealImpl( {@JsonKey(name: 'product_name') required this.productName, @JsonKey(name: 'portion') required this.portion, @JsonKey(name: 'quantity') required this.quantity}); factory _$ProductInMealImpl.fromJson(Map json) => _$$ProductInMealImplFromJson(json); @override @JsonKey(name: 'product_name') final String productName; @override @JsonKey(name: 'portion') final String portion; @override @JsonKey(name: 'quantity') final int quantity; @override String toString() { return 'ProductInMeal(productName: $productName, portion: $portion, quantity: $quantity)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ProductInMealImpl && (identical(other.productName, productName) || other.productName == productName) && (identical(other.portion, portion) || other.portion == portion) && (identical(other.quantity, quantity) || other.quantity == quantity)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, productName, portion, quantity); /// Create a copy of ProductInMeal /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ProductInMealImplCopyWith<_$ProductInMealImpl> get copyWith => __$$ProductInMealImplCopyWithImpl<_$ProductInMealImpl>(this, _$identity); @override Map toJson() { return _$$ProductInMealImplToJson( this, ); } } abstract class _ProductInMeal implements ProductInMeal { const factory _ProductInMeal( {@JsonKey(name: 'product_name') required final String productName, @JsonKey(name: 'portion') required final String portion, @JsonKey(name: 'quantity') required final int quantity}) = _$ProductInMealImpl; factory _ProductInMeal.fromJson(Map json) = _$ProductInMealImpl.fromJson; @override @JsonKey(name: 'product_name') String get productName; @override @JsonKey(name: 'portion') String get portion; @override @JsonKey(name: 'quantity') int get quantity; /// Create a copy of ProductInMeal /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ProductInMealImplCopyWith<_$ProductInMealImpl> get copyWith => throw _privateConstructorUsedError; }