// 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 'chosen_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'); ChosenDietsPaginationModel _$ChosenDietsPaginationModelFromJson( Map json) { return _ChosenDietsPaginationModel.fromJson(json); } /// @nodoc mixin _$ChosenDietsPaginationModel { @JsonKey(name: 'data') List get diets => throw _privateConstructorUsedError; /// Serializes this ChosenDietsPaginationModel to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ChosenDietsPaginationModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ChosenDietsPaginationModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ChosenDietsPaginationModelCopyWith<$Res> { factory $ChosenDietsPaginationModelCopyWith(ChosenDietsPaginationModel value, $Res Function(ChosenDietsPaginationModel) then) = _$ChosenDietsPaginationModelCopyWithImpl<$Res, ChosenDietsPaginationModel>; @useResult $Res call({@JsonKey(name: 'data') List diets}); } /// @nodoc class _$ChosenDietsPaginationModelCopyWithImpl<$Res, $Val extends ChosenDietsPaginationModel> implements $ChosenDietsPaginationModelCopyWith<$Res> { _$ChosenDietsPaginationModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ChosenDietsPaginationModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? diets = null, }) { return _then(_value.copyWith( diets: null == diets ? _value.diets : diets // ignore: cast_nullable_to_non_nullable as List, ) as $Val); } } /// @nodoc abstract class _$$ChosenDietsPaginationModelImplCopyWith<$Res> implements $ChosenDietsPaginationModelCopyWith<$Res> { factory _$$ChosenDietsPaginationModelImplCopyWith( _$ChosenDietsPaginationModelImpl value, $Res Function(_$ChosenDietsPaginationModelImpl) then) = __$$ChosenDietsPaginationModelImplCopyWithImpl<$Res>; @override @useResult $Res call({@JsonKey(name: 'data') List diets}); } /// @nodoc class __$$ChosenDietsPaginationModelImplCopyWithImpl<$Res> extends _$ChosenDietsPaginationModelCopyWithImpl<$Res, _$ChosenDietsPaginationModelImpl> implements _$$ChosenDietsPaginationModelImplCopyWith<$Res> { __$$ChosenDietsPaginationModelImplCopyWithImpl( _$ChosenDietsPaginationModelImpl _value, $Res Function(_$ChosenDietsPaginationModelImpl) _then) : super(_value, _then); /// Create a copy of ChosenDietsPaginationModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? diets = null, }) { return _then(_$ChosenDietsPaginationModelImpl( diets: null == diets ? _value._diets : diets // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc @JsonSerializable() class _$ChosenDietsPaginationModelImpl implements _ChosenDietsPaginationModel { _$ChosenDietsPaginationModelImpl( {@JsonKey(name: 'data') required final List diets}) : _diets = diets; factory _$ChosenDietsPaginationModelImpl.fromJson( Map json) => _$$ChosenDietsPaginationModelImplFromJson(json); final List _diets; @override @JsonKey(name: 'data') List get diets { if (_diets is EqualUnmodifiableListView) return _diets; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_diets); } @override String toString() { return 'ChosenDietsPaginationModel(diets: $diets)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChosenDietsPaginationModelImpl && const DeepCollectionEquality().equals(other._diets, _diets)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_diets)); /// Create a copy of ChosenDietsPaginationModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ChosenDietsPaginationModelImplCopyWith<_$ChosenDietsPaginationModelImpl> get copyWith => __$$ChosenDietsPaginationModelImplCopyWithImpl< _$ChosenDietsPaginationModelImpl>(this, _$identity); @override Map toJson() { return _$$ChosenDietsPaginationModelImplToJson( this, ); } } abstract class _ChosenDietsPaginationModel implements ChosenDietsPaginationModel { factory _ChosenDietsPaginationModel( {@JsonKey(name: 'data') required final List diets}) = _$ChosenDietsPaginationModelImpl; factory _ChosenDietsPaginationModel.fromJson(Map json) = _$ChosenDietsPaginationModelImpl.fromJson; @override @JsonKey(name: 'data') List get diets; /// Create a copy of ChosenDietsPaginationModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ChosenDietsPaginationModelImplCopyWith<_$ChosenDietsPaginationModelImpl> get copyWith => throw _privateConstructorUsedError; } ChosenDietModel _$ChosenDietModelFromJson(Map json) { return _ChosenDietModel.fromJson(json); } /// @nodoc mixin _$ChosenDietModel { @JsonKey(name: 'id') int get chosenDietID => throw _privateConstructorUsedError; @JsonKey(name: 'chosen_plan_id') int get chosenPlanId => throw _privateConstructorUsedError; @JsonKey() String get state => throw _privateConstructorUsedError; @JsonKey(name: 'start_date', fromJson: parseDate) DateTime get startDate => throw _privateConstructorUsedError; @JsonKey(name: 'diet', fromJson: _parseDietId) int? get dietId => throw _privateConstructorUsedError; /// Serializes this ChosenDietModel to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ChosenDietModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ChosenDietModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ChosenDietModelCopyWith<$Res> { factory $ChosenDietModelCopyWith( ChosenDietModel value, $Res Function(ChosenDietModel) then) = _$ChosenDietModelCopyWithImpl<$Res, ChosenDietModel>; @useResult $Res call( {@JsonKey(name: 'id') int chosenDietID, @JsonKey(name: 'chosen_plan_id') int chosenPlanId, @JsonKey() String state, @JsonKey(name: 'start_date', fromJson: parseDate) DateTime startDate, @JsonKey(name: 'diet', fromJson: _parseDietId) int? dietId}); } /// @nodoc class _$ChosenDietModelCopyWithImpl<$Res, $Val extends ChosenDietModel> implements $ChosenDietModelCopyWith<$Res> { _$ChosenDietModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ChosenDietModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? chosenDietID = null, Object? chosenPlanId = null, Object? state = null, Object? startDate = null, Object? dietId = freezed, }) { return _then(_value.copyWith( chosenDietID: null == chosenDietID ? _value.chosenDietID : chosenDietID // ignore: cast_nullable_to_non_nullable as int, chosenPlanId: null == chosenPlanId ? _value.chosenPlanId : chosenPlanId // ignore: cast_nullable_to_non_nullable as int, state: null == state ? _value.state : state // ignore: cast_nullable_to_non_nullable as String, startDate: null == startDate ? _value.startDate : startDate // ignore: cast_nullable_to_non_nullable as DateTime, dietId: freezed == dietId ? _value.dietId : dietId // ignore: cast_nullable_to_non_nullable as int?, ) as $Val); } } /// @nodoc abstract class _$$ChosenDietModelImplCopyWith<$Res> implements $ChosenDietModelCopyWith<$Res> { factory _$$ChosenDietModelImplCopyWith(_$ChosenDietModelImpl value, $Res Function(_$ChosenDietModelImpl) then) = __$$ChosenDietModelImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: 'id') int chosenDietID, @JsonKey(name: 'chosen_plan_id') int chosenPlanId, @JsonKey() String state, @JsonKey(name: 'start_date', fromJson: parseDate) DateTime startDate, @JsonKey(name: 'diet', fromJson: _parseDietId) int? dietId}); } /// @nodoc class __$$ChosenDietModelImplCopyWithImpl<$Res> extends _$ChosenDietModelCopyWithImpl<$Res, _$ChosenDietModelImpl> implements _$$ChosenDietModelImplCopyWith<$Res> { __$$ChosenDietModelImplCopyWithImpl( _$ChosenDietModelImpl _value, $Res Function(_$ChosenDietModelImpl) _then) : super(_value, _then); /// Create a copy of ChosenDietModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? chosenDietID = null, Object? chosenPlanId = null, Object? state = null, Object? startDate = null, Object? dietId = freezed, }) { return _then(_$ChosenDietModelImpl( chosenDietID: null == chosenDietID ? _value.chosenDietID : chosenDietID // ignore: cast_nullable_to_non_nullable as int, chosenPlanId: null == chosenPlanId ? _value.chosenPlanId : chosenPlanId // ignore: cast_nullable_to_non_nullable as int, state: null == state ? _value.state : state // ignore: cast_nullable_to_non_nullable as String, startDate: null == startDate ? _value.startDate : startDate // ignore: cast_nullable_to_non_nullable as DateTime, dietId: freezed == dietId ? _value.dietId : dietId // ignore: cast_nullable_to_non_nullable as int?, )); } } /// @nodoc @JsonSerializable() class _$ChosenDietModelImpl implements _ChosenDietModel { _$ChosenDietModelImpl( {@JsonKey(name: 'id') required this.chosenDietID, @JsonKey(name: 'chosen_plan_id') required this.chosenPlanId, @JsonKey() required this.state, @JsonKey(name: 'start_date', fromJson: parseDate) required this.startDate, @JsonKey(name: 'diet', fromJson: _parseDietId) required this.dietId}); factory _$ChosenDietModelImpl.fromJson(Map json) => _$$ChosenDietModelImplFromJson(json); @override @JsonKey(name: 'id') final int chosenDietID; @override @JsonKey(name: 'chosen_plan_id') final int chosenPlanId; @override @JsonKey() final String state; @override @JsonKey(name: 'start_date', fromJson: parseDate) final DateTime startDate; @override @JsonKey(name: 'diet', fromJson: _parseDietId) final int? dietId; @override String toString() { return 'ChosenDietModel(chosenDietID: $chosenDietID, chosenPlanId: $chosenPlanId, state: $state, startDate: $startDate, dietId: $dietId)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChosenDietModelImpl && (identical(other.chosenDietID, chosenDietID) || other.chosenDietID == chosenDietID) && (identical(other.chosenPlanId, chosenPlanId) || other.chosenPlanId == chosenPlanId) && (identical(other.state, state) || other.state == state) && (identical(other.startDate, startDate) || other.startDate == startDate) && (identical(other.dietId, dietId) || other.dietId == dietId)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, chosenDietID, chosenPlanId, state, startDate, dietId); /// Create a copy of ChosenDietModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ChosenDietModelImplCopyWith<_$ChosenDietModelImpl> get copyWith => __$$ChosenDietModelImplCopyWithImpl<_$ChosenDietModelImpl>( this, _$identity); @override Map toJson() { return _$$ChosenDietModelImplToJson( this, ); } } abstract class _ChosenDietModel implements ChosenDietModel { factory _ChosenDietModel( {@JsonKey(name: 'id') required final int chosenDietID, @JsonKey(name: 'chosen_plan_id') required final int chosenPlanId, @JsonKey() required final String state, @JsonKey(name: 'start_date', fromJson: parseDate) required final DateTime startDate, @JsonKey(name: 'diet', fromJson: _parseDietId) required final int? dietId}) = _$ChosenDietModelImpl; factory _ChosenDietModel.fromJson(Map json) = _$ChosenDietModelImpl.fromJson; @override @JsonKey(name: 'id') int get chosenDietID; @override @JsonKey(name: 'chosen_plan_id') int get chosenPlanId; @override @JsonKey() String get state; @override @JsonKey(name: 'start_date', fromJson: parseDate) DateTime get startDate; @override @JsonKey(name: 'diet', fromJson: _parseDietId) int? get dietId; /// Create a copy of ChosenDietModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ChosenDietModelImplCopyWith<_$ChosenDietModelImpl> get copyWith => throw _privateConstructorUsedError; }