Initial commit
This commit is contained in:
342
lib/domain/entities/program_workout.freezed.dart
Normal file
342
lib/domain/entities/program_workout.freezed.dart
Normal file
@@ -0,0 +1,342 @@
|
||||
// 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 'program_workout.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 _$ProgramWorkoutEntity {
|
||||
String get id => throw _privateConstructorUsedError;
|
||||
String get weekId => throw _privateConstructorUsedError;
|
||||
String get programId => throw _privateConstructorUsedError;
|
||||
String get day => throw _privateConstructorUsedError;
|
||||
String get type => throw _privateConstructorUsedError;
|
||||
String? get refId => throw _privateConstructorUsedError;
|
||||
String? get name => throw _privateConstructorUsedError;
|
||||
String? get description => throw _privateConstructorUsedError;
|
||||
bool get completed => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of ProgramWorkoutEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$ProgramWorkoutEntityCopyWith<ProgramWorkoutEntity> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $ProgramWorkoutEntityCopyWith<$Res> {
|
||||
factory $ProgramWorkoutEntityCopyWith(
|
||||
ProgramWorkoutEntity value,
|
||||
$Res Function(ProgramWorkoutEntity) then,
|
||||
) = _$ProgramWorkoutEntityCopyWithImpl<$Res, ProgramWorkoutEntity>;
|
||||
@useResult
|
||||
$Res call({
|
||||
String id,
|
||||
String weekId,
|
||||
String programId,
|
||||
String day,
|
||||
String type,
|
||||
String? refId,
|
||||
String? name,
|
||||
String? description,
|
||||
bool completed,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$ProgramWorkoutEntityCopyWithImpl<
|
||||
$Res,
|
||||
$Val extends ProgramWorkoutEntity
|
||||
>
|
||||
implements $ProgramWorkoutEntityCopyWith<$Res> {
|
||||
_$ProgramWorkoutEntityCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of ProgramWorkoutEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
Object? weekId = null,
|
||||
Object? programId = null,
|
||||
Object? day = null,
|
||||
Object? type = null,
|
||||
Object? refId = freezed,
|
||||
Object? name = freezed,
|
||||
Object? description = freezed,
|
||||
Object? completed = null,
|
||||
}) {
|
||||
return _then(
|
||||
_value.copyWith(
|
||||
id: null == id
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
weekId: null == weekId
|
||||
? _value.weekId
|
||||
: weekId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
programId: null == programId
|
||||
? _value.programId
|
||||
: programId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
day: null == day
|
||||
? _value.day
|
||||
: day // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
type: null == type
|
||||
? _value.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
refId: freezed == refId
|
||||
? _value.refId
|
||||
: refId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
name: freezed == name
|
||||
? _value.name
|
||||
: name // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
description: freezed == description
|
||||
? _value.description
|
||||
: description // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
completed: null == completed
|
||||
? _value.completed
|
||||
: completed // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
)
|
||||
as $Val,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$ProgramWorkoutEntityImplCopyWith<$Res>
|
||||
implements $ProgramWorkoutEntityCopyWith<$Res> {
|
||||
factory _$$ProgramWorkoutEntityImplCopyWith(
|
||||
_$ProgramWorkoutEntityImpl value,
|
||||
$Res Function(_$ProgramWorkoutEntityImpl) then,
|
||||
) = __$$ProgramWorkoutEntityImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({
|
||||
String id,
|
||||
String weekId,
|
||||
String programId,
|
||||
String day,
|
||||
String type,
|
||||
String? refId,
|
||||
String? name,
|
||||
String? description,
|
||||
bool completed,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$ProgramWorkoutEntityImplCopyWithImpl<$Res>
|
||||
extends _$ProgramWorkoutEntityCopyWithImpl<$Res, _$ProgramWorkoutEntityImpl>
|
||||
implements _$$ProgramWorkoutEntityImplCopyWith<$Res> {
|
||||
__$$ProgramWorkoutEntityImplCopyWithImpl(
|
||||
_$ProgramWorkoutEntityImpl _value,
|
||||
$Res Function(_$ProgramWorkoutEntityImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of ProgramWorkoutEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
Object? weekId = null,
|
||||
Object? programId = null,
|
||||
Object? day = null,
|
||||
Object? type = null,
|
||||
Object? refId = freezed,
|
||||
Object? name = freezed,
|
||||
Object? description = freezed,
|
||||
Object? completed = null,
|
||||
}) {
|
||||
return _then(
|
||||
_$ProgramWorkoutEntityImpl(
|
||||
id: null == id
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
weekId: null == weekId
|
||||
? _value.weekId
|
||||
: weekId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
programId: null == programId
|
||||
? _value.programId
|
||||
: programId // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
day: null == day
|
||||
? _value.day
|
||||
: day // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
type: null == type
|
||||
? _value.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
refId: freezed == refId
|
||||
? _value.refId
|
||||
: refId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
name: freezed == name
|
||||
? _value.name
|
||||
: name // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
description: freezed == description
|
||||
? _value.description
|
||||
: description // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
completed: null == completed
|
||||
? _value.completed
|
||||
: completed // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$ProgramWorkoutEntityImpl implements _ProgramWorkoutEntity {
|
||||
const _$ProgramWorkoutEntityImpl({
|
||||
required this.id,
|
||||
required this.weekId,
|
||||
required this.programId,
|
||||
required this.day,
|
||||
required this.type,
|
||||
this.refId,
|
||||
this.name,
|
||||
this.description,
|
||||
this.completed = false,
|
||||
});
|
||||
|
||||
@override
|
||||
final String id;
|
||||
@override
|
||||
final String weekId;
|
||||
@override
|
||||
final String programId;
|
||||
@override
|
||||
final String day;
|
||||
@override
|
||||
final String type;
|
||||
@override
|
||||
final String? refId;
|
||||
@override
|
||||
final String? name;
|
||||
@override
|
||||
final String? description;
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool completed;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ProgramWorkoutEntity(id: $id, weekId: $weekId, programId: $programId, day: $day, type: $type, refId: $refId, name: $name, description: $description, completed: $completed)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$ProgramWorkoutEntityImpl &&
|
||||
(identical(other.id, id) || other.id == id) &&
|
||||
(identical(other.weekId, weekId) || other.weekId == weekId) &&
|
||||
(identical(other.programId, programId) ||
|
||||
other.programId == programId) &&
|
||||
(identical(other.day, day) || other.day == day) &&
|
||||
(identical(other.type, type) || other.type == type) &&
|
||||
(identical(other.refId, refId) || other.refId == refId) &&
|
||||
(identical(other.name, name) || other.name == name) &&
|
||||
(identical(other.description, description) ||
|
||||
other.description == description) &&
|
||||
(identical(other.completed, completed) ||
|
||||
other.completed == completed));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
id,
|
||||
weekId,
|
||||
programId,
|
||||
day,
|
||||
type,
|
||||
refId,
|
||||
name,
|
||||
description,
|
||||
completed,
|
||||
);
|
||||
|
||||
/// Create a copy of ProgramWorkoutEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$ProgramWorkoutEntityImplCopyWith<_$ProgramWorkoutEntityImpl>
|
||||
get copyWith =>
|
||||
__$$ProgramWorkoutEntityImplCopyWithImpl<_$ProgramWorkoutEntityImpl>(
|
||||
this,
|
||||
_$identity,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class _ProgramWorkoutEntity implements ProgramWorkoutEntity {
|
||||
const factory _ProgramWorkoutEntity({
|
||||
required final String id,
|
||||
required final String weekId,
|
||||
required final String programId,
|
||||
required final String day,
|
||||
required final String type,
|
||||
final String? refId,
|
||||
final String? name,
|
||||
final String? description,
|
||||
final bool completed,
|
||||
}) = _$ProgramWorkoutEntityImpl;
|
||||
|
||||
@override
|
||||
String get id;
|
||||
@override
|
||||
String get weekId;
|
||||
@override
|
||||
String get programId;
|
||||
@override
|
||||
String get day;
|
||||
@override
|
||||
String get type;
|
||||
@override
|
||||
String? get refId;
|
||||
@override
|
||||
String? get name;
|
||||
@override
|
||||
String? get description;
|
||||
@override
|
||||
bool get completed;
|
||||
|
||||
/// Create a copy of ProgramWorkoutEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$ProgramWorkoutEntityImplCopyWith<_$ProgramWorkoutEntityImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
Reference in New Issue
Block a user