// 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 'trainings_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', ); /// @nodoc mixin _$TrainingsState { List get plans => throw _privateConstructorUsedError; List get exercises => throw _privateConstructorUsedError; /// Create a copy of TrainingsState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $TrainingsStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $TrainingsStateCopyWith<$Res> { factory $TrainingsStateCopyWith( TrainingsState value, $Res Function(TrainingsState) then, ) = _$TrainingsStateCopyWithImpl<$Res, TrainingsState>; @useResult $Res call({List plans, List exercises}); } /// @nodoc class _$TrainingsStateCopyWithImpl<$Res, $Val extends TrainingsState> implements $TrainingsStateCopyWith<$Res> { _$TrainingsStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of TrainingsState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? plans = null, Object? exercises = null}) { return _then( _value.copyWith( plans: null == plans ? _value.plans : plans // ignore: cast_nullable_to_non_nullable as List, exercises: null == exercises ? _value.exercises : exercises // ignore: cast_nullable_to_non_nullable as List, ) as $Val, ); } } /// @nodoc abstract class _$$TrainingsStateImplCopyWith<$Res> implements $TrainingsStateCopyWith<$Res> { factory _$$TrainingsStateImplCopyWith( _$TrainingsStateImpl value, $Res Function(_$TrainingsStateImpl) then, ) = __$$TrainingsStateImplCopyWithImpl<$Res>; @override @useResult $Res call({List plans, List exercises}); } /// @nodoc class __$$TrainingsStateImplCopyWithImpl<$Res> extends _$TrainingsStateCopyWithImpl<$Res, _$TrainingsStateImpl> implements _$$TrainingsStateImplCopyWith<$Res> { __$$TrainingsStateImplCopyWithImpl( _$TrainingsStateImpl _value, $Res Function(_$TrainingsStateImpl) _then, ) : super(_value, _then); /// Create a copy of TrainingsState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? plans = null, Object? exercises = null}) { return _then( _$TrainingsStateImpl( plans: null == plans ? _value._plans : plans // ignore: cast_nullable_to_non_nullable as List, exercises: null == exercises ? _value._exercises : exercises // ignore: cast_nullable_to_non_nullable as List, ), ); } } /// @nodoc class _$TrainingsStateImpl implements _TrainingsState { const _$TrainingsStateImpl({ final List plans = const [], final List exercises = const [], }) : _plans = plans, _exercises = exercises; final List _plans; @override @JsonKey() List get plans { if (_plans is EqualUnmodifiableListView) return _plans; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_plans); } final List _exercises; @override @JsonKey() List get exercises { if (_exercises is EqualUnmodifiableListView) return _exercises; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_exercises); } @override String toString() { return 'TrainingsState(plans: $plans, exercises: $exercises)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TrainingsStateImpl && const DeepCollectionEquality().equals(other._plans, _plans) && const DeepCollectionEquality().equals( other._exercises, _exercises, )); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_plans), const DeepCollectionEquality().hash(_exercises), ); /// Create a copy of TrainingsState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$TrainingsStateImplCopyWith<_$TrainingsStateImpl> get copyWith => __$$TrainingsStateImplCopyWithImpl<_$TrainingsStateImpl>( this, _$identity, ); } abstract class _TrainingsState implements TrainingsState { const factory _TrainingsState({ final List plans, final List exercises, }) = _$TrainingsStateImpl; @override List get plans; @override List get exercises; /// Create a copy of TrainingsState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$TrainingsStateImplCopyWith<_$TrainingsStateImpl> get copyWith => throw _privateConstructorUsedError; }