347 lines
11 KiB
Dart
347 lines
11 KiB
Dart
// 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 'workout_activity.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
T _$identity<T>(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 _$WorkoutActivityEntity {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get type => throw _privateConstructorUsedError;
|
|
int get duration => throw _privateConstructorUsedError;
|
|
TrainingExerciseEntity? get originalExercise =>
|
|
throw _privateConstructorUsedError;
|
|
String? get sectionName => throw _privateConstructorUsedError;
|
|
int? get setIndex => throw _privateConstructorUsedError;
|
|
int? get totalSets => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of WorkoutActivityEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$WorkoutActivityEntityCopyWith<WorkoutActivityEntity> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $WorkoutActivityEntityCopyWith<$Res> {
|
|
factory $WorkoutActivityEntityCopyWith(
|
|
WorkoutActivityEntity value,
|
|
$Res Function(WorkoutActivityEntity) then,
|
|
) = _$WorkoutActivityEntityCopyWithImpl<$Res, WorkoutActivityEntity>;
|
|
@useResult
|
|
$Res call({
|
|
String id,
|
|
String name,
|
|
String type,
|
|
int duration,
|
|
TrainingExerciseEntity? originalExercise,
|
|
String? sectionName,
|
|
int? setIndex,
|
|
int? totalSets,
|
|
});
|
|
|
|
$TrainingExerciseEntityCopyWith<$Res>? get originalExercise;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$WorkoutActivityEntityCopyWithImpl<
|
|
$Res,
|
|
$Val extends WorkoutActivityEntity
|
|
>
|
|
implements $WorkoutActivityEntityCopyWith<$Res> {
|
|
_$WorkoutActivityEntityCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of WorkoutActivityEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? type = null,
|
|
Object? duration = null,
|
|
Object? originalExercise = freezed,
|
|
Object? sectionName = freezed,
|
|
Object? setIndex = freezed,
|
|
Object? totalSets = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
duration: null == duration
|
|
? _value.duration
|
|
: duration // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
originalExercise: freezed == originalExercise
|
|
? _value.originalExercise
|
|
: originalExercise // ignore: cast_nullable_to_non_nullable
|
|
as TrainingExerciseEntity?,
|
|
sectionName: freezed == sectionName
|
|
? _value.sectionName
|
|
: sectionName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
setIndex: freezed == setIndex
|
|
? _value.setIndex
|
|
: setIndex // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
totalSets: freezed == totalSets
|
|
? _value.totalSets
|
|
: totalSets // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
|
|
/// Create a copy of WorkoutActivityEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$TrainingExerciseEntityCopyWith<$Res>? get originalExercise {
|
|
if (_value.originalExercise == null) {
|
|
return null;
|
|
}
|
|
|
|
return $TrainingExerciseEntityCopyWith<$Res>(_value.originalExercise!, (
|
|
value,
|
|
) {
|
|
return _then(_value.copyWith(originalExercise: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$WorkoutActivityEntityImplCopyWith<$Res>
|
|
implements $WorkoutActivityEntityCopyWith<$Res> {
|
|
factory _$$WorkoutActivityEntityImplCopyWith(
|
|
_$WorkoutActivityEntityImpl value,
|
|
$Res Function(_$WorkoutActivityEntityImpl) then,
|
|
) = __$$WorkoutActivityEntityImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
String id,
|
|
String name,
|
|
String type,
|
|
int duration,
|
|
TrainingExerciseEntity? originalExercise,
|
|
String? sectionName,
|
|
int? setIndex,
|
|
int? totalSets,
|
|
});
|
|
|
|
@override
|
|
$TrainingExerciseEntityCopyWith<$Res>? get originalExercise;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$WorkoutActivityEntityImplCopyWithImpl<$Res>
|
|
extends
|
|
_$WorkoutActivityEntityCopyWithImpl<$Res, _$WorkoutActivityEntityImpl>
|
|
implements _$$WorkoutActivityEntityImplCopyWith<$Res> {
|
|
__$$WorkoutActivityEntityImplCopyWithImpl(
|
|
_$WorkoutActivityEntityImpl _value,
|
|
$Res Function(_$WorkoutActivityEntityImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of WorkoutActivityEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? type = null,
|
|
Object? duration = null,
|
|
Object? originalExercise = freezed,
|
|
Object? sectionName = freezed,
|
|
Object? setIndex = freezed,
|
|
Object? totalSets = freezed,
|
|
}) {
|
|
return _then(
|
|
_$WorkoutActivityEntityImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
duration: null == duration
|
|
? _value.duration
|
|
: duration // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
originalExercise: freezed == originalExercise
|
|
? _value.originalExercise
|
|
: originalExercise // ignore: cast_nullable_to_non_nullable
|
|
as TrainingExerciseEntity?,
|
|
sectionName: freezed == sectionName
|
|
? _value.sectionName
|
|
: sectionName // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
setIndex: freezed == setIndex
|
|
? _value.setIndex
|
|
: setIndex // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
totalSets: freezed == totalSets
|
|
? _value.totalSets
|
|
: totalSets // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$WorkoutActivityEntityImpl extends _WorkoutActivityEntity {
|
|
const _$WorkoutActivityEntityImpl({
|
|
required this.id,
|
|
required this.name,
|
|
required this.type,
|
|
required this.duration,
|
|
this.originalExercise,
|
|
this.sectionName,
|
|
this.setIndex,
|
|
this.totalSets,
|
|
}) : super._();
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String type;
|
|
@override
|
|
final int duration;
|
|
@override
|
|
final TrainingExerciseEntity? originalExercise;
|
|
@override
|
|
final String? sectionName;
|
|
@override
|
|
final int? setIndex;
|
|
@override
|
|
final int? totalSets;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'WorkoutActivityEntity(id: $id, name: $name, type: $type, duration: $duration, originalExercise: $originalExercise, sectionName: $sectionName, setIndex: $setIndex, totalSets: $totalSets)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$WorkoutActivityEntityImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.type, type) || other.type == type) &&
|
|
(identical(other.duration, duration) ||
|
|
other.duration == duration) &&
|
|
(identical(other.originalExercise, originalExercise) ||
|
|
other.originalExercise == originalExercise) &&
|
|
(identical(other.sectionName, sectionName) ||
|
|
other.sectionName == sectionName) &&
|
|
(identical(other.setIndex, setIndex) ||
|
|
other.setIndex == setIndex) &&
|
|
(identical(other.totalSets, totalSets) ||
|
|
other.totalSets == totalSets));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
name,
|
|
type,
|
|
duration,
|
|
originalExercise,
|
|
sectionName,
|
|
setIndex,
|
|
totalSets,
|
|
);
|
|
|
|
/// Create a copy of WorkoutActivityEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$WorkoutActivityEntityImplCopyWith<_$WorkoutActivityEntityImpl>
|
|
get copyWith =>
|
|
__$$WorkoutActivityEntityImplCopyWithImpl<_$WorkoutActivityEntityImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
}
|
|
|
|
abstract class _WorkoutActivityEntity extends WorkoutActivityEntity {
|
|
const factory _WorkoutActivityEntity({
|
|
required final String id,
|
|
required final String name,
|
|
required final String type,
|
|
required final int duration,
|
|
final TrainingExerciseEntity? originalExercise,
|
|
final String? sectionName,
|
|
final int? setIndex,
|
|
final int? totalSets,
|
|
}) = _$WorkoutActivityEntityImpl;
|
|
const _WorkoutActivityEntity._() : super._();
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get type;
|
|
@override
|
|
int get duration;
|
|
@override
|
|
TrainingExerciseEntity? get originalExercise;
|
|
@override
|
|
String? get sectionName;
|
|
@override
|
|
int? get setIndex;
|
|
@override
|
|
int? get totalSets;
|
|
|
|
/// Create a copy of WorkoutActivityEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$WorkoutActivityEntityImplCopyWith<_$WorkoutActivityEntityImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|