// 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 'training_exercise.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 _$TrainingExerciseEntity { String get instanceId => throw _privateConstructorUsedError; String get exerciseId => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; int get sets => throw _privateConstructorUsedError; int get value => throw _privateConstructorUsedError; bool get isTime => throw _privateConstructorUsedError; int get rest => throw _privateConstructorUsedError; /// Create a copy of TrainingExerciseEntity /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $TrainingExerciseEntityCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $TrainingExerciseEntityCopyWith<$Res> { factory $TrainingExerciseEntityCopyWith( TrainingExerciseEntity value, $Res Function(TrainingExerciseEntity) then, ) = _$TrainingExerciseEntityCopyWithImpl<$Res, TrainingExerciseEntity>; @useResult $Res call({ String instanceId, String exerciseId, String name, int sets, int value, bool isTime, int rest, }); } /// @nodoc class _$TrainingExerciseEntityCopyWithImpl< $Res, $Val extends TrainingExerciseEntity > implements $TrainingExerciseEntityCopyWith<$Res> { _$TrainingExerciseEntityCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of TrainingExerciseEntity /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? instanceId = null, Object? exerciseId = null, Object? name = null, Object? sets = null, Object? value = null, Object? isTime = null, Object? rest = null, }) { return _then( _value.copyWith( instanceId: null == instanceId ? _value.instanceId : instanceId // ignore: cast_nullable_to_non_nullable as String, exerciseId: null == exerciseId ? _value.exerciseId : exerciseId // ignore: cast_nullable_to_non_nullable as String, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, sets: null == sets ? _value.sets : sets // ignore: cast_nullable_to_non_nullable as int, value: null == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as int, isTime: null == isTime ? _value.isTime : isTime // ignore: cast_nullable_to_non_nullable as bool, rest: null == rest ? _value.rest : rest // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } } /// @nodoc abstract class _$$TrainingExerciseEntityImplCopyWith<$Res> implements $TrainingExerciseEntityCopyWith<$Res> { factory _$$TrainingExerciseEntityImplCopyWith( _$TrainingExerciseEntityImpl value, $Res Function(_$TrainingExerciseEntityImpl) then, ) = __$$TrainingExerciseEntityImplCopyWithImpl<$Res>; @override @useResult $Res call({ String instanceId, String exerciseId, String name, int sets, int value, bool isTime, int rest, }); } /// @nodoc class __$$TrainingExerciseEntityImplCopyWithImpl<$Res> extends _$TrainingExerciseEntityCopyWithImpl<$Res, _$TrainingExerciseEntityImpl> implements _$$TrainingExerciseEntityImplCopyWith<$Res> { __$$TrainingExerciseEntityImplCopyWithImpl( _$TrainingExerciseEntityImpl _value, $Res Function(_$TrainingExerciseEntityImpl) _then, ) : super(_value, _then); /// Create a copy of TrainingExerciseEntity /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? instanceId = null, Object? exerciseId = null, Object? name = null, Object? sets = null, Object? value = null, Object? isTime = null, Object? rest = null, }) { return _then( _$TrainingExerciseEntityImpl( instanceId: null == instanceId ? _value.instanceId : instanceId // ignore: cast_nullable_to_non_nullable as String, exerciseId: null == exerciseId ? _value.exerciseId : exerciseId // ignore: cast_nullable_to_non_nullable as String, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, sets: null == sets ? _value.sets : sets // ignore: cast_nullable_to_non_nullable as int, value: null == value ? _value.value : value // ignore: cast_nullable_to_non_nullable as int, isTime: null == isTime ? _value.isTime : isTime // ignore: cast_nullable_to_non_nullable as bool, rest: null == rest ? _value.rest : rest // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc class _$TrainingExerciseEntityImpl implements _TrainingExerciseEntity { const _$TrainingExerciseEntityImpl({ required this.instanceId, required this.exerciseId, required this.name, this.sets = 3, this.value = 10, this.isTime = false, this.rest = 60, }); @override final String instanceId; @override final String exerciseId; @override final String name; @override @JsonKey() final int sets; @override @JsonKey() final int value; @override @JsonKey() final bool isTime; @override @JsonKey() final int rest; @override String toString() { return 'TrainingExerciseEntity(instanceId: $instanceId, exerciseId: $exerciseId, name: $name, sets: $sets, value: $value, isTime: $isTime, rest: $rest)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TrainingExerciseEntityImpl && (identical(other.instanceId, instanceId) || other.instanceId == instanceId) && (identical(other.exerciseId, exerciseId) || other.exerciseId == exerciseId) && (identical(other.name, name) || other.name == name) && (identical(other.sets, sets) || other.sets == sets) && (identical(other.value, value) || other.value == value) && (identical(other.isTime, isTime) || other.isTime == isTime) && (identical(other.rest, rest) || other.rest == rest)); } @override int get hashCode => Object.hash( runtimeType, instanceId, exerciseId, name, sets, value, isTime, rest, ); /// Create a copy of TrainingExerciseEntity /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$TrainingExerciseEntityImplCopyWith<_$TrainingExerciseEntityImpl> get copyWith => __$$TrainingExerciseEntityImplCopyWithImpl<_$TrainingExerciseEntityImpl>( this, _$identity, ); } abstract class _TrainingExerciseEntity implements TrainingExerciseEntity { const factory _TrainingExerciseEntity({ required final String instanceId, required final String exerciseId, required final String name, final int sets, final int value, final bool isTime, final int rest, }) = _$TrainingExerciseEntityImpl; @override String get instanceId; @override String get exerciseId; @override String get name; @override int get sets; @override int get value; @override bool get isTime; @override int get rest; /// Create a copy of TrainingExerciseEntity /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$TrainingExerciseEntityImplCopyWith<_$TrainingExerciseEntityImpl> get copyWith => throw _privateConstructorUsedError; }