// 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 'state.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'); State _$StateFromJson(Map json) { return _State.fromJson(json); } /// @nodoc mixin _$State { bool get has_chosen_diet => throw _privateConstructorUsedError; bool get has_chosen_plan => throw _privateConstructorUsedError; /// Serializes this State to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of State /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $StateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $StateCopyWith<$Res> { factory $StateCopyWith(State value, $Res Function(State) then) = _$StateCopyWithImpl<$Res, State>; @useResult $Res call({bool has_chosen_diet, bool has_chosen_plan}); } /// @nodoc class _$StateCopyWithImpl<$Res, $Val extends State> implements $StateCopyWith<$Res> { _$StateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of State /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? has_chosen_diet = null, Object? has_chosen_plan = null, }) { return _then(_value.copyWith( has_chosen_diet: null == has_chosen_diet ? _value.has_chosen_diet : has_chosen_diet // ignore: cast_nullable_to_non_nullable as bool, has_chosen_plan: null == has_chosen_plan ? _value.has_chosen_plan : has_chosen_plan // ignore: cast_nullable_to_non_nullable as bool, ) as $Val); } } /// @nodoc abstract class _$$StateImplCopyWith<$Res> implements $StateCopyWith<$Res> { factory _$$StateImplCopyWith( _$StateImpl value, $Res Function(_$StateImpl) then) = __$$StateImplCopyWithImpl<$Res>; @override @useResult $Res call({bool has_chosen_diet, bool has_chosen_plan}); } /// @nodoc class __$$StateImplCopyWithImpl<$Res> extends _$StateCopyWithImpl<$Res, _$StateImpl> implements _$$StateImplCopyWith<$Res> { __$$StateImplCopyWithImpl( _$StateImpl _value, $Res Function(_$StateImpl) _then) : super(_value, _then); /// Create a copy of State /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? has_chosen_diet = null, Object? has_chosen_plan = null, }) { return _then(_$StateImpl( has_chosen_diet: null == has_chosen_diet ? _value.has_chosen_diet : has_chosen_diet // ignore: cast_nullable_to_non_nullable as bool, has_chosen_plan: null == has_chosen_plan ? _value.has_chosen_plan : has_chosen_plan // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc @JsonSerializable() class _$StateImpl implements _State { const _$StateImpl( {required this.has_chosen_diet, required this.has_chosen_plan}); factory _$StateImpl.fromJson(Map json) => _$$StateImplFromJson(json); @override final bool has_chosen_diet; @override final bool has_chosen_plan; @override String toString() { return 'State(has_chosen_diet: $has_chosen_diet, has_chosen_plan: $has_chosen_plan)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$StateImpl && (identical(other.has_chosen_diet, has_chosen_diet) || other.has_chosen_diet == has_chosen_diet) && (identical(other.has_chosen_plan, has_chosen_plan) || other.has_chosen_plan == has_chosen_plan)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, has_chosen_diet, has_chosen_plan); /// Create a copy of State /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$StateImplCopyWith<_$StateImpl> get copyWith => __$$StateImplCopyWithImpl<_$StateImpl>(this, _$identity); @override Map toJson() { return _$$StateImplToJson( this, ); } } abstract class _State implements State { const factory _State( {required final bool has_chosen_diet, required final bool has_chosen_plan}) = _$StateImpl; factory _State.fromJson(Map json) = _$StateImpl.fromJson; @override bool get has_chosen_diet; @override bool get has_chosen_plan; /// Create a copy of State /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$StateImplCopyWith<_$StateImpl> get copyWith => throw _privateConstructorUsedError; }