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