297 lines
9.2 KiB
Dart
297 lines
9.2 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 'exercise.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 _$ExerciseEntity {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String? get instructions => throw _privateConstructorUsedError;
|
|
String? get enrichment => throw _privateConstructorUsedError;
|
|
String? get tags => throw _privateConstructorUsedError;
|
|
String? get videoUrl => throw _privateConstructorUsedError;
|
|
String? get muscleGroup => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ExerciseEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ExerciseEntityCopyWith<ExerciseEntity> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ExerciseEntityCopyWith<$Res> {
|
|
factory $ExerciseEntityCopyWith(
|
|
ExerciseEntity value,
|
|
$Res Function(ExerciseEntity) then,
|
|
) = _$ExerciseEntityCopyWithImpl<$Res, ExerciseEntity>;
|
|
@useResult
|
|
$Res call({
|
|
String id,
|
|
String name,
|
|
String? instructions,
|
|
String? enrichment,
|
|
String? tags,
|
|
String? videoUrl,
|
|
String? muscleGroup,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ExerciseEntityCopyWithImpl<$Res, $Val extends ExerciseEntity>
|
|
implements $ExerciseEntityCopyWith<$Res> {
|
|
_$ExerciseEntityCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ExerciseEntity
|
|
/// 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? instructions = freezed,
|
|
Object? enrichment = freezed,
|
|
Object? tags = freezed,
|
|
Object? videoUrl = freezed,
|
|
Object? muscleGroup = 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,
|
|
instructions: freezed == instructions
|
|
? _value.instructions
|
|
: instructions // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
enrichment: freezed == enrichment
|
|
? _value.enrichment
|
|
: enrichment // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
tags: freezed == tags
|
|
? _value.tags
|
|
: tags // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
videoUrl: freezed == videoUrl
|
|
? _value.videoUrl
|
|
: videoUrl // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
muscleGroup: freezed == muscleGroup
|
|
? _value.muscleGroup
|
|
: muscleGroup // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ExerciseEntityImplCopyWith<$Res>
|
|
implements $ExerciseEntityCopyWith<$Res> {
|
|
factory _$$ExerciseEntityImplCopyWith(
|
|
_$ExerciseEntityImpl value,
|
|
$Res Function(_$ExerciseEntityImpl) then,
|
|
) = __$$ExerciseEntityImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
String id,
|
|
String name,
|
|
String? instructions,
|
|
String? enrichment,
|
|
String? tags,
|
|
String? videoUrl,
|
|
String? muscleGroup,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ExerciseEntityImplCopyWithImpl<$Res>
|
|
extends _$ExerciseEntityCopyWithImpl<$Res, _$ExerciseEntityImpl>
|
|
implements _$$ExerciseEntityImplCopyWith<$Res> {
|
|
__$$ExerciseEntityImplCopyWithImpl(
|
|
_$ExerciseEntityImpl _value,
|
|
$Res Function(_$ExerciseEntityImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of ExerciseEntity
|
|
/// 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? instructions = freezed,
|
|
Object? enrichment = freezed,
|
|
Object? tags = freezed,
|
|
Object? videoUrl = freezed,
|
|
Object? muscleGroup = freezed,
|
|
}) {
|
|
return _then(
|
|
_$ExerciseEntityImpl(
|
|
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,
|
|
instructions: freezed == instructions
|
|
? _value.instructions
|
|
: instructions // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
enrichment: freezed == enrichment
|
|
? _value.enrichment
|
|
: enrichment // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
tags: freezed == tags
|
|
? _value.tags
|
|
: tags // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
videoUrl: freezed == videoUrl
|
|
? _value.videoUrl
|
|
: videoUrl // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
muscleGroup: freezed == muscleGroup
|
|
? _value.muscleGroup
|
|
: muscleGroup // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$ExerciseEntityImpl implements _ExerciseEntity {
|
|
const _$ExerciseEntityImpl({
|
|
required this.id,
|
|
required this.name,
|
|
this.instructions,
|
|
this.enrichment,
|
|
this.tags,
|
|
this.videoUrl,
|
|
this.muscleGroup,
|
|
});
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String? instructions;
|
|
@override
|
|
final String? enrichment;
|
|
@override
|
|
final String? tags;
|
|
@override
|
|
final String? videoUrl;
|
|
@override
|
|
final String? muscleGroup;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ExerciseEntity(id: $id, name: $name, instructions: $instructions, enrichment: $enrichment, tags: $tags, videoUrl: $videoUrl, muscleGroup: $muscleGroup)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ExerciseEntityImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.instructions, instructions) ||
|
|
other.instructions == instructions) &&
|
|
(identical(other.enrichment, enrichment) ||
|
|
other.enrichment == enrichment) &&
|
|
(identical(other.tags, tags) || other.tags == tags) &&
|
|
(identical(other.videoUrl, videoUrl) ||
|
|
other.videoUrl == videoUrl) &&
|
|
(identical(other.muscleGroup, muscleGroup) ||
|
|
other.muscleGroup == muscleGroup));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
name,
|
|
instructions,
|
|
enrichment,
|
|
tags,
|
|
videoUrl,
|
|
muscleGroup,
|
|
);
|
|
|
|
/// Create a copy of ExerciseEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ExerciseEntityImplCopyWith<_$ExerciseEntityImpl> get copyWith =>
|
|
__$$ExerciseEntityImplCopyWithImpl<_$ExerciseEntityImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
}
|
|
|
|
abstract class _ExerciseEntity implements ExerciseEntity {
|
|
const factory _ExerciseEntity({
|
|
required final String id,
|
|
required final String name,
|
|
final String? instructions,
|
|
final String? enrichment,
|
|
final String? tags,
|
|
final String? videoUrl,
|
|
final String? muscleGroup,
|
|
}) = _$ExerciseEntityImpl;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String? get instructions;
|
|
@override
|
|
String? get enrichment;
|
|
@override
|
|
String? get tags;
|
|
@override
|
|
String? get videoUrl;
|
|
@override
|
|
String? get muscleGroup;
|
|
|
|
/// Create a copy of ExerciseEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ExerciseEntityImplCopyWith<_$ExerciseEntityImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|