253 lines
8.1 KiB
Dart
253 lines
8.1 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 'module_model.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');
|
|
|
|
ModuleModel _$ModuleModelFromJson(Map<String, dynamic> json) {
|
|
return _ModuleModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ModuleModel {
|
|
String get key => throw _privateConstructorUsedError;
|
|
String get display => throw _privateConstructorUsedError;
|
|
String get expirationDate => throw _privateConstructorUsedError;
|
|
String get startDate => throw _privateConstructorUsedError;
|
|
int get quantity => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this ModuleModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ModuleModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ModuleModelCopyWith<ModuleModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ModuleModelCopyWith<$Res> {
|
|
factory $ModuleModelCopyWith(
|
|
ModuleModel value, $Res Function(ModuleModel) then) =
|
|
_$ModuleModelCopyWithImpl<$Res, ModuleModel>;
|
|
@useResult
|
|
$Res call(
|
|
{String key,
|
|
String display,
|
|
String expirationDate,
|
|
String startDate,
|
|
int quantity});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ModuleModelCopyWithImpl<$Res, $Val extends ModuleModel>
|
|
implements $ModuleModelCopyWith<$Res> {
|
|
_$ModuleModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ModuleModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? key = null,
|
|
Object? display = null,
|
|
Object? expirationDate = null,
|
|
Object? startDate = null,
|
|
Object? quantity = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
key: null == key
|
|
? _value.key
|
|
: key // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
display: null == display
|
|
? _value.display
|
|
: display // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
expirationDate: null == expirationDate
|
|
? _value.expirationDate
|
|
: expirationDate // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
startDate: null == startDate
|
|
? _value.startDate
|
|
: startDate // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
quantity: null == quantity
|
|
? _value.quantity
|
|
: quantity // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ModuleModelImplCopyWith<$Res>
|
|
implements $ModuleModelCopyWith<$Res> {
|
|
factory _$$ModuleModelImplCopyWith(
|
|
_$ModuleModelImpl value, $Res Function(_$ModuleModelImpl) then) =
|
|
__$$ModuleModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String key,
|
|
String display,
|
|
String expirationDate,
|
|
String startDate,
|
|
int quantity});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ModuleModelImplCopyWithImpl<$Res>
|
|
extends _$ModuleModelCopyWithImpl<$Res, _$ModuleModelImpl>
|
|
implements _$$ModuleModelImplCopyWith<$Res> {
|
|
__$$ModuleModelImplCopyWithImpl(
|
|
_$ModuleModelImpl _value, $Res Function(_$ModuleModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of ModuleModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? key = null,
|
|
Object? display = null,
|
|
Object? expirationDate = null,
|
|
Object? startDate = null,
|
|
Object? quantity = null,
|
|
}) {
|
|
return _then(_$ModuleModelImpl(
|
|
key: null == key
|
|
? _value.key
|
|
: key // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
display: null == display
|
|
? _value.display
|
|
: display // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
expirationDate: null == expirationDate
|
|
? _value.expirationDate
|
|
: expirationDate // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
startDate: null == startDate
|
|
? _value.startDate
|
|
: startDate // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
quantity: null == quantity
|
|
? _value.quantity
|
|
: quantity // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ModuleModelImpl implements _ModuleModel {
|
|
const _$ModuleModelImpl(
|
|
{required this.key,
|
|
required this.display,
|
|
required this.expirationDate,
|
|
required this.startDate,
|
|
required this.quantity});
|
|
|
|
factory _$ModuleModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ModuleModelImplFromJson(json);
|
|
|
|
@override
|
|
final String key;
|
|
@override
|
|
final String display;
|
|
@override
|
|
final String expirationDate;
|
|
@override
|
|
final String startDate;
|
|
@override
|
|
final int quantity;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ModuleModel(key: $key, display: $display, expirationDate: $expirationDate, startDate: $startDate, quantity: $quantity)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ModuleModelImpl &&
|
|
(identical(other.key, key) || other.key == key) &&
|
|
(identical(other.display, display) || other.display == display) &&
|
|
(identical(other.expirationDate, expirationDate) ||
|
|
other.expirationDate == expirationDate) &&
|
|
(identical(other.startDate, startDate) ||
|
|
other.startDate == startDate) &&
|
|
(identical(other.quantity, quantity) ||
|
|
other.quantity == quantity));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType, key, display, expirationDate, startDate, quantity);
|
|
|
|
/// Create a copy of ModuleModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ModuleModelImplCopyWith<_$ModuleModelImpl> get copyWith =>
|
|
__$$ModuleModelImplCopyWithImpl<_$ModuleModelImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ModuleModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ModuleModel implements ModuleModel {
|
|
const factory _ModuleModel(
|
|
{required final String key,
|
|
required final String display,
|
|
required final String expirationDate,
|
|
required final String startDate,
|
|
required final int quantity}) = _$ModuleModelImpl;
|
|
|
|
factory _ModuleModel.fromJson(Map<String, dynamic> json) =
|
|
_$ModuleModelImpl.fromJson;
|
|
|
|
@override
|
|
String get key;
|
|
@override
|
|
String get display;
|
|
@override
|
|
String get expirationDate;
|
|
@override
|
|
String get startDate;
|
|
@override
|
|
int get quantity;
|
|
|
|
/// Create a copy of ModuleModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ModuleModelImplCopyWith<_$ModuleModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|