216 lines
7.0 KiB
Dart
216 lines
7.0 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 'program_week.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 _$ProgramWeekEntity {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get programId => throw _privateConstructorUsedError;
|
|
int get position => throw _privateConstructorUsedError;
|
|
String? get notes => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ProgramWeekEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ProgramWeekEntityCopyWith<ProgramWeekEntity> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ProgramWeekEntityCopyWith<$Res> {
|
|
factory $ProgramWeekEntityCopyWith(
|
|
ProgramWeekEntity value,
|
|
$Res Function(ProgramWeekEntity) then,
|
|
) = _$ProgramWeekEntityCopyWithImpl<$Res, ProgramWeekEntity>;
|
|
@useResult
|
|
$Res call({String id, String programId, int position, String? notes});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ProgramWeekEntityCopyWithImpl<$Res, $Val extends ProgramWeekEntity>
|
|
implements $ProgramWeekEntityCopyWith<$Res> {
|
|
_$ProgramWeekEntityCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ProgramWeekEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? programId = null,
|
|
Object? position = null,
|
|
Object? notes = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
programId: null == programId
|
|
? _value.programId
|
|
: programId // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
position: null == position
|
|
? _value.position
|
|
: position // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
notes: freezed == notes
|
|
? _value.notes
|
|
: notes // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ProgramWeekEntityImplCopyWith<$Res>
|
|
implements $ProgramWeekEntityCopyWith<$Res> {
|
|
factory _$$ProgramWeekEntityImplCopyWith(
|
|
_$ProgramWeekEntityImpl value,
|
|
$Res Function(_$ProgramWeekEntityImpl) then,
|
|
) = __$$ProgramWeekEntityImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String id, String programId, int position, String? notes});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ProgramWeekEntityImplCopyWithImpl<$Res>
|
|
extends _$ProgramWeekEntityCopyWithImpl<$Res, _$ProgramWeekEntityImpl>
|
|
implements _$$ProgramWeekEntityImplCopyWith<$Res> {
|
|
__$$ProgramWeekEntityImplCopyWithImpl(
|
|
_$ProgramWeekEntityImpl _value,
|
|
$Res Function(_$ProgramWeekEntityImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of ProgramWeekEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? programId = null,
|
|
Object? position = null,
|
|
Object? notes = freezed,
|
|
}) {
|
|
return _then(
|
|
_$ProgramWeekEntityImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
programId: null == programId
|
|
? _value.programId
|
|
: programId // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
position: null == position
|
|
? _value.position
|
|
: position // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
notes: freezed == notes
|
|
? _value.notes
|
|
: notes // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$ProgramWeekEntityImpl implements _ProgramWeekEntity {
|
|
const _$ProgramWeekEntityImpl({
|
|
required this.id,
|
|
required this.programId,
|
|
required this.position,
|
|
this.notes,
|
|
});
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String programId;
|
|
@override
|
|
final int position;
|
|
@override
|
|
final String? notes;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ProgramWeekEntity(id: $id, programId: $programId, position: $position, notes: $notes)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ProgramWeekEntityImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.programId, programId) ||
|
|
other.programId == programId) &&
|
|
(identical(other.position, position) ||
|
|
other.position == position) &&
|
|
(identical(other.notes, notes) || other.notes == notes));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, programId, position, notes);
|
|
|
|
/// Create a copy of ProgramWeekEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ProgramWeekEntityImplCopyWith<_$ProgramWeekEntityImpl> get copyWith =>
|
|
__$$ProgramWeekEntityImplCopyWithImpl<_$ProgramWeekEntityImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
}
|
|
|
|
abstract class _ProgramWeekEntity implements ProgramWeekEntity {
|
|
const factory _ProgramWeekEntity({
|
|
required final String id,
|
|
required final String programId,
|
|
required final int position,
|
|
final String? notes,
|
|
}) = _$ProgramWeekEntityImpl;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get programId;
|
|
@override
|
|
int get position;
|
|
@override
|
|
String? get notes;
|
|
|
|
/// Create a copy of ProgramWeekEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ProgramWeekEntityImplCopyWith<_$ProgramWeekEntityImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|