forked from eatvio/eatvio_app
381 lines
12 KiB
Dart
381 lines
12 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 'glossary_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');
|
|
|
|
GlossaryPaginationModel _$GlossaryPaginationModelFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _GlossaryPaginationModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$GlossaryPaginationModel {
|
|
@JsonKey(name: 'data')
|
|
List<GlossaryModel> get glossariesList => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this GlossaryPaginationModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of GlossaryPaginationModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$GlossaryPaginationModelCopyWith<GlossaryPaginationModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $GlossaryPaginationModelCopyWith<$Res> {
|
|
factory $GlossaryPaginationModelCopyWith(GlossaryPaginationModel value,
|
|
$Res Function(GlossaryPaginationModel) then) =
|
|
_$GlossaryPaginationModelCopyWithImpl<$Res, GlossaryPaginationModel>;
|
|
@useResult
|
|
$Res call({@JsonKey(name: 'data') List<GlossaryModel> glossariesList});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$GlossaryPaginationModelCopyWithImpl<$Res,
|
|
$Val extends GlossaryPaginationModel>
|
|
implements $GlossaryPaginationModelCopyWith<$Res> {
|
|
_$GlossaryPaginationModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of GlossaryPaginationModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? glossariesList = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
glossariesList: null == glossariesList
|
|
? _value.glossariesList
|
|
: glossariesList // ignore: cast_nullable_to_non_nullable
|
|
as List<GlossaryModel>,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$GlossaryPaginationModelImplCopyWith<$Res>
|
|
implements $GlossaryPaginationModelCopyWith<$Res> {
|
|
factory _$$GlossaryPaginationModelImplCopyWith(
|
|
_$GlossaryPaginationModelImpl value,
|
|
$Res Function(_$GlossaryPaginationModelImpl) then) =
|
|
__$$GlossaryPaginationModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({@JsonKey(name: 'data') List<GlossaryModel> glossariesList});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$GlossaryPaginationModelImplCopyWithImpl<$Res>
|
|
extends _$GlossaryPaginationModelCopyWithImpl<$Res,
|
|
_$GlossaryPaginationModelImpl>
|
|
implements _$$GlossaryPaginationModelImplCopyWith<$Res> {
|
|
__$$GlossaryPaginationModelImplCopyWithImpl(
|
|
_$GlossaryPaginationModelImpl _value,
|
|
$Res Function(_$GlossaryPaginationModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of GlossaryPaginationModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? glossariesList = null,
|
|
}) {
|
|
return _then(_$GlossaryPaginationModelImpl(
|
|
glossariesList: null == glossariesList
|
|
? _value._glossariesList
|
|
: glossariesList // ignore: cast_nullable_to_non_nullable
|
|
as List<GlossaryModel>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$GlossaryPaginationModelImpl implements _GlossaryPaginationModel {
|
|
const _$GlossaryPaginationModelImpl(
|
|
{@JsonKey(name: 'data')
|
|
required final List<GlossaryModel> glossariesList})
|
|
: _glossariesList = glossariesList;
|
|
|
|
factory _$GlossaryPaginationModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$GlossaryPaginationModelImplFromJson(json);
|
|
|
|
final List<GlossaryModel> _glossariesList;
|
|
@override
|
|
@JsonKey(name: 'data')
|
|
List<GlossaryModel> get glossariesList {
|
|
if (_glossariesList is EqualUnmodifiableListView) return _glossariesList;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_glossariesList);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'GlossaryPaginationModel(glossariesList: $glossariesList)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$GlossaryPaginationModelImpl &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._glossariesList, _glossariesList));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType, const DeepCollectionEquality().hash(_glossariesList));
|
|
|
|
/// Create a copy of GlossaryPaginationModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$GlossaryPaginationModelImplCopyWith<_$GlossaryPaginationModelImpl>
|
|
get copyWith => __$$GlossaryPaginationModelImplCopyWithImpl<
|
|
_$GlossaryPaginationModelImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$GlossaryPaginationModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _GlossaryPaginationModel implements GlossaryPaginationModel {
|
|
const factory _GlossaryPaginationModel(
|
|
{@JsonKey(name: 'data')
|
|
required final List<GlossaryModel> glossariesList}) =
|
|
_$GlossaryPaginationModelImpl;
|
|
|
|
factory _GlossaryPaginationModel.fromJson(Map<String, dynamic> json) =
|
|
_$GlossaryPaginationModelImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: 'data')
|
|
List<GlossaryModel> get glossariesList;
|
|
|
|
/// Create a copy of GlossaryPaginationModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$GlossaryPaginationModelImplCopyWith<_$GlossaryPaginationModelImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
GlossaryModel _$GlossaryModelFromJson(Map<String, dynamic> json) {
|
|
return _GlossaryModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$GlossaryModel {
|
|
int get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'portion_mass_gr')
|
|
int get grInPortion => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this GlossaryModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of GlossaryModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$GlossaryModelCopyWith<GlossaryModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $GlossaryModelCopyWith<$Res> {
|
|
factory $GlossaryModelCopyWith(
|
|
GlossaryModel value, $Res Function(GlossaryModel) then) =
|
|
_$GlossaryModelCopyWithImpl<$Res, GlossaryModel>;
|
|
@useResult
|
|
$Res call(
|
|
{int id, String name, @JsonKey(name: 'portion_mass_gr') int grInPortion});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$GlossaryModelCopyWithImpl<$Res, $Val extends GlossaryModel>
|
|
implements $GlossaryModelCopyWith<$Res> {
|
|
_$GlossaryModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of GlossaryModel
|
|
/// 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? grInPortion = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
grInPortion: null == grInPortion
|
|
? _value.grInPortion
|
|
: grInPortion // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$GlossaryModelImplCopyWith<$Res>
|
|
implements $GlossaryModelCopyWith<$Res> {
|
|
factory _$$GlossaryModelImplCopyWith(
|
|
_$GlossaryModelImpl value, $Res Function(_$GlossaryModelImpl) then) =
|
|
__$$GlossaryModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{int id, String name, @JsonKey(name: 'portion_mass_gr') int grInPortion});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$GlossaryModelImplCopyWithImpl<$Res>
|
|
extends _$GlossaryModelCopyWithImpl<$Res, _$GlossaryModelImpl>
|
|
implements _$$GlossaryModelImplCopyWith<$Res> {
|
|
__$$GlossaryModelImplCopyWithImpl(
|
|
_$GlossaryModelImpl _value, $Res Function(_$GlossaryModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of GlossaryModel
|
|
/// 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? grInPortion = null,
|
|
}) {
|
|
return _then(_$GlossaryModelImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
grInPortion: null == grInPortion
|
|
? _value.grInPortion
|
|
: grInPortion // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$GlossaryModelImpl implements _GlossaryModel {
|
|
const _$GlossaryModelImpl(
|
|
{required this.id,
|
|
required this.name,
|
|
@JsonKey(name: 'portion_mass_gr') required this.grInPortion});
|
|
|
|
factory _$GlossaryModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$GlossaryModelImplFromJson(json);
|
|
|
|
@override
|
|
final int id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
@JsonKey(name: 'portion_mass_gr')
|
|
final int grInPortion;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'GlossaryModel(id: $id, name: $name, grInPortion: $grInPortion)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$GlossaryModelImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.grInPortion, grInPortion) ||
|
|
other.grInPortion == grInPortion));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, name, grInPortion);
|
|
|
|
/// Create a copy of GlossaryModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$GlossaryModelImplCopyWith<_$GlossaryModelImpl> get copyWith =>
|
|
__$$GlossaryModelImplCopyWithImpl<_$GlossaryModelImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$GlossaryModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _GlossaryModel implements GlossaryModel {
|
|
const factory _GlossaryModel(
|
|
{required final int id,
|
|
required final String name,
|
|
@JsonKey(name: 'portion_mass_gr') required final int grInPortion}) =
|
|
_$GlossaryModelImpl;
|
|
|
|
factory _GlossaryModel.fromJson(Map<String, dynamic> json) =
|
|
_$GlossaryModelImpl.fromJson;
|
|
|
|
@override
|
|
int get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
@JsonKey(name: 'portion_mass_gr')
|
|
int get grInPortion;
|
|
|
|
/// Create a copy of GlossaryModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$GlossaryModelImplCopyWith<_$GlossaryModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|