forked from eatvio/eatvio_app
fix: remove ignored files
This commit is contained in:
@@ -1,773 +0,0 @@
|
||||
// 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;
|
||||
}
|
||||
|
||||
GlossaryModerationModel _$GlossaryModerationModelFromJson(
|
||||
Map<String, dynamic> json) {
|
||||
return _GlossaryModerationModel.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$GlossaryModerationModel {
|
||||
@JsonKey(name: 'product_nutritional_value')
|
||||
GlossaryModel get glossary => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this GlossaryModerationModel to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of GlossaryModerationModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$GlossaryModerationModelCopyWith<GlossaryModerationModel> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $GlossaryModerationModelCopyWith<$Res> {
|
||||
factory $GlossaryModerationModelCopyWith(GlossaryModerationModel value,
|
||||
$Res Function(GlossaryModerationModel) then) =
|
||||
_$GlossaryModerationModelCopyWithImpl<$Res, GlossaryModerationModel>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: 'product_nutritional_value') GlossaryModel glossary});
|
||||
|
||||
$GlossaryModelCopyWith<$Res> get glossary;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$GlossaryModerationModelCopyWithImpl<$Res,
|
||||
$Val extends GlossaryModerationModel>
|
||||
implements $GlossaryModerationModelCopyWith<$Res> {
|
||||
_$GlossaryModerationModelCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of GlossaryModerationModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? glossary = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
glossary: null == glossary
|
||||
? _value.glossary
|
||||
: glossary // ignore: cast_nullable_to_non_nullable
|
||||
as GlossaryModel,
|
||||
) as $Val);
|
||||
}
|
||||
|
||||
/// Create a copy of GlossaryModerationModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$GlossaryModelCopyWith<$Res> get glossary {
|
||||
return $GlossaryModelCopyWith<$Res>(_value.glossary, (value) {
|
||||
return _then(_value.copyWith(glossary: value) as $Val);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$GlossaryModerationModelImplCopyWith<$Res>
|
||||
implements $GlossaryModerationModelCopyWith<$Res> {
|
||||
factory _$$GlossaryModerationModelImplCopyWith(
|
||||
_$GlossaryModerationModelImpl value,
|
||||
$Res Function(_$GlossaryModerationModelImpl) then) =
|
||||
__$$GlossaryModerationModelImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: 'product_nutritional_value') GlossaryModel glossary});
|
||||
|
||||
@override
|
||||
$GlossaryModelCopyWith<$Res> get glossary;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$GlossaryModerationModelImplCopyWithImpl<$Res>
|
||||
extends _$GlossaryModerationModelCopyWithImpl<$Res,
|
||||
_$GlossaryModerationModelImpl>
|
||||
implements _$$GlossaryModerationModelImplCopyWith<$Res> {
|
||||
__$$GlossaryModerationModelImplCopyWithImpl(
|
||||
_$GlossaryModerationModelImpl _value,
|
||||
$Res Function(_$GlossaryModerationModelImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of GlossaryModerationModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? glossary = null,
|
||||
}) {
|
||||
return _then(_$GlossaryModerationModelImpl(
|
||||
glossary: null == glossary
|
||||
? _value.glossary
|
||||
: glossary // ignore: cast_nullable_to_non_nullable
|
||||
as GlossaryModel,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$GlossaryModerationModelImpl implements _GlossaryModerationModel {
|
||||
const _$GlossaryModerationModelImpl(
|
||||
{@JsonKey(name: 'product_nutritional_value') required this.glossary});
|
||||
|
||||
factory _$GlossaryModerationModelImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$GlossaryModerationModelImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'product_nutritional_value')
|
||||
final GlossaryModel glossary;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'GlossaryModerationModel(glossary: $glossary)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$GlossaryModerationModelImpl &&
|
||||
(identical(other.glossary, glossary) ||
|
||||
other.glossary == glossary));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, glossary);
|
||||
|
||||
/// Create a copy of GlossaryModerationModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$GlossaryModerationModelImplCopyWith<_$GlossaryModerationModelImpl>
|
||||
get copyWith => __$$GlossaryModerationModelImplCopyWithImpl<
|
||||
_$GlossaryModerationModelImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$GlossaryModerationModelImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _GlossaryModerationModel implements GlossaryModerationModel {
|
||||
const factory _GlossaryModerationModel(
|
||||
{@JsonKey(name: 'product_nutritional_value')
|
||||
required final GlossaryModel glossary}) = _$GlossaryModerationModelImpl;
|
||||
|
||||
factory _GlossaryModerationModel.fromJson(Map<String, dynamic> json) =
|
||||
_$GlossaryModerationModelImpl.fromJson;
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'product_nutritional_value')
|
||||
GlossaryModel get glossary;
|
||||
|
||||
/// Create a copy of GlossaryModerationModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$GlossaryModerationModelImplCopyWith<_$GlossaryModerationModelImpl>
|
||||
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;
|
||||
@JsonKey(name: 'energy_on_100gr')
|
||||
double get energyOn100Gr => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'proteins_on_100gr')
|
||||
double get proteinsOn100Gr => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'fats_on_100gr')
|
||||
double get fatsOn100Gr => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'carbohydrates_on_100gr')
|
||||
double get carbohydratesOn100Gr => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'energy_on_portion')
|
||||
double get energyOnPortion => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'proteins_on_portion')
|
||||
double get proteinsOnPortion => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'fats_on_portion')
|
||||
double get fatsOnPortion => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'carbohydrates_on_portion')
|
||||
double get carbohydratesOnPortion => 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,
|
||||
@JsonKey(name: 'energy_on_100gr') double energyOn100Gr,
|
||||
@JsonKey(name: 'proteins_on_100gr') double proteinsOn100Gr,
|
||||
@JsonKey(name: 'fats_on_100gr') double fatsOn100Gr,
|
||||
@JsonKey(name: 'carbohydrates_on_100gr') double carbohydratesOn100Gr,
|
||||
@JsonKey(name: 'energy_on_portion') double energyOnPortion,
|
||||
@JsonKey(name: 'proteins_on_portion') double proteinsOnPortion,
|
||||
@JsonKey(name: 'fats_on_portion') double fatsOnPortion,
|
||||
@JsonKey(name: 'carbohydrates_on_portion')
|
||||
double carbohydratesOnPortion});
|
||||
}
|
||||
|
||||
/// @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,
|
||||
Object? energyOn100Gr = null,
|
||||
Object? proteinsOn100Gr = null,
|
||||
Object? fatsOn100Gr = null,
|
||||
Object? carbohydratesOn100Gr = null,
|
||||
Object? energyOnPortion = null,
|
||||
Object? proteinsOnPortion = null,
|
||||
Object? fatsOnPortion = null,
|
||||
Object? carbohydratesOnPortion = 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,
|
||||
energyOn100Gr: null == energyOn100Gr
|
||||
? _value.energyOn100Gr
|
||||
: energyOn100Gr // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
proteinsOn100Gr: null == proteinsOn100Gr
|
||||
? _value.proteinsOn100Gr
|
||||
: proteinsOn100Gr // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
fatsOn100Gr: null == fatsOn100Gr
|
||||
? _value.fatsOn100Gr
|
||||
: fatsOn100Gr // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
carbohydratesOn100Gr: null == carbohydratesOn100Gr
|
||||
? _value.carbohydratesOn100Gr
|
||||
: carbohydratesOn100Gr // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
energyOnPortion: null == energyOnPortion
|
||||
? _value.energyOnPortion
|
||||
: energyOnPortion // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
proteinsOnPortion: null == proteinsOnPortion
|
||||
? _value.proteinsOnPortion
|
||||
: proteinsOnPortion // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
fatsOnPortion: null == fatsOnPortion
|
||||
? _value.fatsOnPortion
|
||||
: fatsOnPortion // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
carbohydratesOnPortion: null == carbohydratesOnPortion
|
||||
? _value.carbohydratesOnPortion
|
||||
: carbohydratesOnPortion // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
) 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,
|
||||
@JsonKey(name: 'energy_on_100gr') double energyOn100Gr,
|
||||
@JsonKey(name: 'proteins_on_100gr') double proteinsOn100Gr,
|
||||
@JsonKey(name: 'fats_on_100gr') double fatsOn100Gr,
|
||||
@JsonKey(name: 'carbohydrates_on_100gr') double carbohydratesOn100Gr,
|
||||
@JsonKey(name: 'energy_on_portion') double energyOnPortion,
|
||||
@JsonKey(name: 'proteins_on_portion') double proteinsOnPortion,
|
||||
@JsonKey(name: 'fats_on_portion') double fatsOnPortion,
|
||||
@JsonKey(name: 'carbohydrates_on_portion')
|
||||
double carbohydratesOnPortion});
|
||||
}
|
||||
|
||||
/// @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,
|
||||
Object? energyOn100Gr = null,
|
||||
Object? proteinsOn100Gr = null,
|
||||
Object? fatsOn100Gr = null,
|
||||
Object? carbohydratesOn100Gr = null,
|
||||
Object? energyOnPortion = null,
|
||||
Object? proteinsOnPortion = null,
|
||||
Object? fatsOnPortion = null,
|
||||
Object? carbohydratesOnPortion = 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,
|
||||
energyOn100Gr: null == energyOn100Gr
|
||||
? _value.energyOn100Gr
|
||||
: energyOn100Gr // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
proteinsOn100Gr: null == proteinsOn100Gr
|
||||
? _value.proteinsOn100Gr
|
||||
: proteinsOn100Gr // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
fatsOn100Gr: null == fatsOn100Gr
|
||||
? _value.fatsOn100Gr
|
||||
: fatsOn100Gr // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
carbohydratesOn100Gr: null == carbohydratesOn100Gr
|
||||
? _value.carbohydratesOn100Gr
|
||||
: carbohydratesOn100Gr // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
energyOnPortion: null == energyOnPortion
|
||||
? _value.energyOnPortion
|
||||
: energyOnPortion // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
proteinsOnPortion: null == proteinsOnPortion
|
||||
? _value.proteinsOnPortion
|
||||
: proteinsOnPortion // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
fatsOnPortion: null == fatsOnPortion
|
||||
? _value.fatsOnPortion
|
||||
: fatsOnPortion // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
carbohydratesOnPortion: null == carbohydratesOnPortion
|
||||
? _value.carbohydratesOnPortion
|
||||
: carbohydratesOnPortion // ignore: cast_nullable_to_non_nullable
|
||||
as double,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$GlossaryModelImpl implements _GlossaryModel {
|
||||
const _$GlossaryModelImpl(
|
||||
{required this.id,
|
||||
required this.name,
|
||||
@JsonKey(name: 'portion_mass_gr') required this.grInPortion,
|
||||
@JsonKey(name: 'energy_on_100gr') required this.energyOn100Gr,
|
||||
@JsonKey(name: 'proteins_on_100gr') required this.proteinsOn100Gr,
|
||||
@JsonKey(name: 'fats_on_100gr') required this.fatsOn100Gr,
|
||||
@JsonKey(name: 'carbohydrates_on_100gr')
|
||||
required this.carbohydratesOn100Gr,
|
||||
@JsonKey(name: 'energy_on_portion') required this.energyOnPortion,
|
||||
@JsonKey(name: 'proteins_on_portion') required this.proteinsOnPortion,
|
||||
@JsonKey(name: 'fats_on_portion') required this.fatsOnPortion,
|
||||
@JsonKey(name: 'carbohydrates_on_portion')
|
||||
required this.carbohydratesOnPortion});
|
||||
|
||||
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
|
||||
@JsonKey(name: 'energy_on_100gr')
|
||||
final double energyOn100Gr;
|
||||
@override
|
||||
@JsonKey(name: 'proteins_on_100gr')
|
||||
final double proteinsOn100Gr;
|
||||
@override
|
||||
@JsonKey(name: 'fats_on_100gr')
|
||||
final double fatsOn100Gr;
|
||||
@override
|
||||
@JsonKey(name: 'carbohydrates_on_100gr')
|
||||
final double carbohydratesOn100Gr;
|
||||
@override
|
||||
@JsonKey(name: 'energy_on_portion')
|
||||
final double energyOnPortion;
|
||||
@override
|
||||
@JsonKey(name: 'proteins_on_portion')
|
||||
final double proteinsOnPortion;
|
||||
@override
|
||||
@JsonKey(name: 'fats_on_portion')
|
||||
final double fatsOnPortion;
|
||||
@override
|
||||
@JsonKey(name: 'carbohydrates_on_portion')
|
||||
final double carbohydratesOnPortion;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'GlossaryModel(id: $id, name: $name, grInPortion: $grInPortion, energyOn100Gr: $energyOn100Gr, proteinsOn100Gr: $proteinsOn100Gr, fatsOn100Gr: $fatsOn100Gr, carbohydratesOn100Gr: $carbohydratesOn100Gr, energyOnPortion: $energyOnPortion, proteinsOnPortion: $proteinsOnPortion, fatsOnPortion: $fatsOnPortion, carbohydratesOnPortion: $carbohydratesOnPortion)';
|
||||
}
|
||||
|
||||
@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) &&
|
||||
(identical(other.energyOn100Gr, energyOn100Gr) ||
|
||||
other.energyOn100Gr == energyOn100Gr) &&
|
||||
(identical(other.proteinsOn100Gr, proteinsOn100Gr) ||
|
||||
other.proteinsOn100Gr == proteinsOn100Gr) &&
|
||||
(identical(other.fatsOn100Gr, fatsOn100Gr) ||
|
||||
other.fatsOn100Gr == fatsOn100Gr) &&
|
||||
(identical(other.carbohydratesOn100Gr, carbohydratesOn100Gr) ||
|
||||
other.carbohydratesOn100Gr == carbohydratesOn100Gr) &&
|
||||
(identical(other.energyOnPortion, energyOnPortion) ||
|
||||
other.energyOnPortion == energyOnPortion) &&
|
||||
(identical(other.proteinsOnPortion, proteinsOnPortion) ||
|
||||
other.proteinsOnPortion == proteinsOnPortion) &&
|
||||
(identical(other.fatsOnPortion, fatsOnPortion) ||
|
||||
other.fatsOnPortion == fatsOnPortion) &&
|
||||
(identical(other.carbohydratesOnPortion, carbohydratesOnPortion) ||
|
||||
other.carbohydratesOnPortion == carbohydratesOnPortion));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
id,
|
||||
name,
|
||||
grInPortion,
|
||||
energyOn100Gr,
|
||||
proteinsOn100Gr,
|
||||
fatsOn100Gr,
|
||||
carbohydratesOn100Gr,
|
||||
energyOnPortion,
|
||||
proteinsOnPortion,
|
||||
fatsOnPortion,
|
||||
carbohydratesOnPortion);
|
||||
|
||||
/// 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,
|
||||
@JsonKey(name: 'energy_on_100gr') required final double energyOn100Gr,
|
||||
@JsonKey(name: 'proteins_on_100gr') required final double proteinsOn100Gr,
|
||||
@JsonKey(name: 'fats_on_100gr') required final double fatsOn100Gr,
|
||||
@JsonKey(name: 'carbohydrates_on_100gr')
|
||||
required final double carbohydratesOn100Gr,
|
||||
@JsonKey(name: 'energy_on_portion') required final double energyOnPortion,
|
||||
@JsonKey(name: 'proteins_on_portion')
|
||||
required final double proteinsOnPortion,
|
||||
@JsonKey(name: 'fats_on_portion') required final double fatsOnPortion,
|
||||
@JsonKey(name: 'carbohydrates_on_portion')
|
||||
required final double carbohydratesOnPortion}) = _$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;
|
||||
@override
|
||||
@JsonKey(name: 'energy_on_100gr')
|
||||
double get energyOn100Gr;
|
||||
@override
|
||||
@JsonKey(name: 'proteins_on_100gr')
|
||||
double get proteinsOn100Gr;
|
||||
@override
|
||||
@JsonKey(name: 'fats_on_100gr')
|
||||
double get fatsOn100Gr;
|
||||
@override
|
||||
@JsonKey(name: 'carbohydrates_on_100gr')
|
||||
double get carbohydratesOn100Gr;
|
||||
@override
|
||||
@JsonKey(name: 'energy_on_portion')
|
||||
double get energyOnPortion;
|
||||
@override
|
||||
@JsonKey(name: 'proteins_on_portion')
|
||||
double get proteinsOnPortion;
|
||||
@override
|
||||
@JsonKey(name: 'fats_on_portion')
|
||||
double get fatsOnPortion;
|
||||
@override
|
||||
@JsonKey(name: 'carbohydrates_on_portion')
|
||||
double get carbohydratesOnPortion;
|
||||
|
||||
/// 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;
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'glossary_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$GlossaryPaginationModelImpl _$$GlossaryPaginationModelImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$GlossaryPaginationModelImpl(
|
||||
glossariesList: (json['data'] as List<dynamic>)
|
||||
.map((e) => GlossaryModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$GlossaryPaginationModelImplToJson(
|
||||
_$GlossaryPaginationModelImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'data': instance.glossariesList,
|
||||
};
|
||||
|
||||
_$GlossaryModerationModelImpl _$$GlossaryModerationModelImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$GlossaryModerationModelImpl(
|
||||
glossary: GlossaryModel.fromJson(
|
||||
json['product_nutritional_value'] as Map<String, dynamic>),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$GlossaryModerationModelImplToJson(
|
||||
_$GlossaryModerationModelImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'product_nutritional_value': instance.glossary,
|
||||
};
|
||||
|
||||
_$GlossaryModelImpl _$$GlossaryModelImplFromJson(Map<String, dynamic> json) =>
|
||||
_$GlossaryModelImpl(
|
||||
id: (json['id'] as num).toInt(),
|
||||
name: json['name'] as String,
|
||||
grInPortion: (json['portion_mass_gr'] as num).toInt(),
|
||||
energyOn100Gr: (json['energy_on_100gr'] as num).toDouble(),
|
||||
proteinsOn100Gr: (json['proteins_on_100gr'] as num).toDouble(),
|
||||
fatsOn100Gr: (json['fats_on_100gr'] as num).toDouble(),
|
||||
carbohydratesOn100Gr: (json['carbohydrates_on_100gr'] as num).toDouble(),
|
||||
energyOnPortion: (json['energy_on_portion'] as num).toDouble(),
|
||||
proteinsOnPortion: (json['proteins_on_portion'] as num).toDouble(),
|
||||
fatsOnPortion: (json['fats_on_portion'] as num).toDouble(),
|
||||
carbohydratesOnPortion:
|
||||
(json['carbohydrates_on_portion'] as num).toDouble(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$GlossaryModelImplToJson(_$GlossaryModelImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'name': instance.name,
|
||||
'portion_mass_gr': instance.grInPortion,
|
||||
'energy_on_100gr': instance.energyOn100Gr,
|
||||
'proteins_on_100gr': instance.proteinsOn100Gr,
|
||||
'fats_on_100gr': instance.fatsOn100Gr,
|
||||
'carbohydrates_on_100gr': instance.carbohydratesOn100Gr,
|
||||
'energy_on_portion': instance.energyOnPortion,
|
||||
'proteins_on_portion': instance.proteinsOnPortion,
|
||||
'fats_on_portion': instance.fatsOnPortion,
|
||||
'carbohydrates_on_portion': instance.carbohydratesOnPortion,
|
||||
};
|
||||
Reference in New Issue
Block a user