forked from eatvio/eatvio_app
Merge pull request 'main' (#9) from eatvio/eatvio_app:main into main
Reviewed-on: mso7nueh/eatvio_app#9
This commit is contained in:
@@ -1061,12 +1061,19 @@ DailySchedule _$DailyScheduleFromJson(Map<String, dynamic> json) {
|
||||
mixin _$DailySchedule {
|
||||
@JsonKey(name: "name")
|
||||
String get name => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "uniq")
|
||||
@JsonKey(name: "uniq", includeToJson: false)
|
||||
String get uniq => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "portion")
|
||||
Portion get portion => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "quantity")
|
||||
int get quantity => throw _privateConstructorUsedError;
|
||||
@JsonKey(includeToJson: false, includeFromJson: false)
|
||||
DailyNutrition? get dailyNutrition => throw _privateConstructorUsedError;
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
String? get productNutritionalValueId => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this DailySchedule to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@@ -1086,9 +1093,18 @@ abstract class $DailyScheduleCopyWith<$Res> {
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: "name") String name,
|
||||
@JsonKey(name: "uniq") String uniq,
|
||||
@JsonKey(name: "uniq", includeToJson: false) String uniq,
|
||||
@JsonKey(name: "portion") Portion portion,
|
||||
@JsonKey(name: "quantity") int quantity});
|
||||
@JsonKey(name: "quantity") int quantity,
|
||||
@JsonKey(includeToJson: false, includeFromJson: false)
|
||||
DailyNutrition? dailyNutrition,
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
String? productNutritionalValueId});
|
||||
|
||||
$DailyNutritionCopyWith<$Res>? get dailyNutrition;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -1110,6 +1126,8 @@ class _$DailyScheduleCopyWithImpl<$Res, $Val extends DailySchedule>
|
||||
Object? uniq = null,
|
||||
Object? portion = null,
|
||||
Object? quantity = null,
|
||||
Object? dailyNutrition = freezed,
|
||||
Object? productNutritionalValueId = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
name: null == name
|
||||
@@ -1128,8 +1146,30 @@ class _$DailyScheduleCopyWithImpl<$Res, $Val extends DailySchedule>
|
||||
? _value.quantity
|
||||
: quantity // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
dailyNutrition: freezed == dailyNutrition
|
||||
? _value.dailyNutrition
|
||||
: dailyNutrition // ignore: cast_nullable_to_non_nullable
|
||||
as DailyNutrition?,
|
||||
productNutritionalValueId: freezed == productNutritionalValueId
|
||||
? _value.productNutritionalValueId
|
||||
: productNutritionalValueId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
) as $Val);
|
||||
}
|
||||
|
||||
/// Create a copy of DailySchedule
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$DailyNutritionCopyWith<$Res>? get dailyNutrition {
|
||||
if (_value.dailyNutrition == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $DailyNutritionCopyWith<$Res>(_value.dailyNutrition!, (value) {
|
||||
return _then(_value.copyWith(dailyNutrition: value) as $Val);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -1142,9 +1182,19 @@ abstract class _$$DailyScheduleImplCopyWith<$Res>
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: "name") String name,
|
||||
@JsonKey(name: "uniq") String uniq,
|
||||
@JsonKey(name: "uniq", includeToJson: false) String uniq,
|
||||
@JsonKey(name: "portion") Portion portion,
|
||||
@JsonKey(name: "quantity") int quantity});
|
||||
@JsonKey(name: "quantity") int quantity,
|
||||
@JsonKey(includeToJson: false, includeFromJson: false)
|
||||
DailyNutrition? dailyNutrition,
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
String? productNutritionalValueId});
|
||||
|
||||
@override
|
||||
$DailyNutritionCopyWith<$Res>? get dailyNutrition;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -1164,6 +1214,8 @@ class __$$DailyScheduleImplCopyWithImpl<$Res>
|
||||
Object? uniq = null,
|
||||
Object? portion = null,
|
||||
Object? quantity = null,
|
||||
Object? dailyNutrition = freezed,
|
||||
Object? productNutritionalValueId = freezed,
|
||||
}) {
|
||||
return _then(_$DailyScheduleImpl(
|
||||
name: null == name
|
||||
@@ -1182,6 +1234,14 @@ class __$$DailyScheduleImplCopyWithImpl<$Res>
|
||||
? _value.quantity
|
||||
: quantity // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
dailyNutrition: freezed == dailyNutrition
|
||||
? _value.dailyNutrition
|
||||
: dailyNutrition // ignore: cast_nullable_to_non_nullable
|
||||
as DailyNutrition?,
|
||||
productNutritionalValueId: freezed == productNutritionalValueId
|
||||
? _value.productNutritionalValueId
|
||||
: productNutritionalValueId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -1191,9 +1251,16 @@ class __$$DailyScheduleImplCopyWithImpl<$Res>
|
||||
class _$DailyScheduleImpl implements _DailySchedule {
|
||||
const _$DailyScheduleImpl(
|
||||
{@JsonKey(name: "name") required this.name,
|
||||
@JsonKey(name: "uniq") required this.uniq,
|
||||
@JsonKey(name: "uniq", includeToJson: false) required this.uniq,
|
||||
@JsonKey(name: "portion") required this.portion,
|
||||
@JsonKey(name: "quantity") required this.quantity});
|
||||
@JsonKey(name: "quantity") required this.quantity,
|
||||
@JsonKey(includeToJson: false, includeFromJson: false)
|
||||
this.dailyNutrition,
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
this.productNutritionalValueId});
|
||||
|
||||
factory _$DailyScheduleImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$DailyScheduleImplFromJson(json);
|
||||
@@ -1202,7 +1269,7 @@ class _$DailyScheduleImpl implements _DailySchedule {
|
||||
@JsonKey(name: "name")
|
||||
final String name;
|
||||
@override
|
||||
@JsonKey(name: "uniq")
|
||||
@JsonKey(name: "uniq", includeToJson: false)
|
||||
final String uniq;
|
||||
@override
|
||||
@JsonKey(name: "portion")
|
||||
@@ -1210,10 +1277,19 @@ class _$DailyScheduleImpl implements _DailySchedule {
|
||||
@override
|
||||
@JsonKey(name: "quantity")
|
||||
final int quantity;
|
||||
@override
|
||||
@JsonKey(includeToJson: false, includeFromJson: false)
|
||||
final DailyNutrition? dailyNutrition;
|
||||
@override
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
final String? productNutritionalValueId;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'DailySchedule(name: $name, uniq: $uniq, portion: $portion, quantity: $quantity)';
|
||||
return 'DailySchedule(name: $name, uniq: $uniq, portion: $portion, quantity: $quantity, dailyNutrition: $dailyNutrition, productNutritionalValueId: $productNutritionalValueId)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -1225,12 +1301,18 @@ class _$DailyScheduleImpl implements _DailySchedule {
|
||||
(identical(other.uniq, uniq) || other.uniq == uniq) &&
|
||||
(identical(other.portion, portion) || other.portion == portion) &&
|
||||
(identical(other.quantity, quantity) ||
|
||||
other.quantity == quantity));
|
||||
other.quantity == quantity) &&
|
||||
(identical(other.dailyNutrition, dailyNutrition) ||
|
||||
other.dailyNutrition == dailyNutrition) &&
|
||||
(identical(other.productNutritionalValueId,
|
||||
productNutritionalValueId) ||
|
||||
other.productNutritionalValueId == productNutritionalValueId));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, name, uniq, portion, quantity);
|
||||
int get hashCode => Object.hash(runtimeType, name, uniq, portion, quantity,
|
||||
dailyNutrition, productNutritionalValueId);
|
||||
|
||||
/// Create a copy of DailySchedule
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -1250,11 +1332,17 @@ class _$DailyScheduleImpl implements _DailySchedule {
|
||||
|
||||
abstract class _DailySchedule implements DailySchedule {
|
||||
const factory _DailySchedule(
|
||||
{@JsonKey(name: "name") required final String name,
|
||||
@JsonKey(name: "uniq") required final String uniq,
|
||||
@JsonKey(name: "portion") required final Portion portion,
|
||||
@JsonKey(name: "quantity") required final int quantity}) =
|
||||
_$DailyScheduleImpl;
|
||||
{@JsonKey(name: "name") required final String name,
|
||||
@JsonKey(name: "uniq", includeToJson: false) required final String uniq,
|
||||
@JsonKey(name: "portion") required final Portion portion,
|
||||
@JsonKey(name: "quantity") required final int quantity,
|
||||
@JsonKey(includeToJson: false, includeFromJson: false)
|
||||
final DailyNutrition? dailyNutrition,
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
final String? productNutritionalValueId}) = _$DailyScheduleImpl;
|
||||
|
||||
factory _DailySchedule.fromJson(Map<String, dynamic> json) =
|
||||
_$DailyScheduleImpl.fromJson;
|
||||
@@ -1263,7 +1351,7 @@ abstract class _DailySchedule implements DailySchedule {
|
||||
@JsonKey(name: "name")
|
||||
String get name;
|
||||
@override
|
||||
@JsonKey(name: "uniq")
|
||||
@JsonKey(name: "uniq", includeToJson: false)
|
||||
String get uniq;
|
||||
@override
|
||||
@JsonKey(name: "portion")
|
||||
@@ -1271,6 +1359,15 @@ abstract class _DailySchedule implements DailySchedule {
|
||||
@override
|
||||
@JsonKey(name: "quantity")
|
||||
int get quantity;
|
||||
@override
|
||||
@JsonKey(includeToJson: false, includeFromJson: false)
|
||||
DailyNutrition? get dailyNutrition;
|
||||
@override
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
String? get productNutritionalValueId;
|
||||
|
||||
/// Create a copy of DailySchedule
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -1286,12 +1383,12 @@ DietType _$DietTypeFromJson(Map<String, dynamic> json) {
|
||||
|
||||
/// @nodoc
|
||||
mixin _$DietType {
|
||||
@JsonKey(name: "alko")
|
||||
bool? get alko => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "light")
|
||||
bool? get light => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "veg")
|
||||
bool? get veg => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "corb")
|
||||
bool? get corb => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "carb")
|
||||
bool? get carb => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "meat")
|
||||
bool? get meat => throw _privateConstructorUsedError;
|
||||
|
||||
@@ -1311,9 +1408,9 @@ abstract class $DietTypeCopyWith<$Res> {
|
||||
_$DietTypeCopyWithImpl<$Res, DietType>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: "alko") bool? alko,
|
||||
{@JsonKey(name: "light") bool? light,
|
||||
@JsonKey(name: "veg") bool? veg,
|
||||
@JsonKey(name: "corb") bool? corb,
|
||||
@JsonKey(name: "carb") bool? carb,
|
||||
@JsonKey(name: "meat") bool? meat});
|
||||
}
|
||||
|
||||
@@ -1332,23 +1429,23 @@ class _$DietTypeCopyWithImpl<$Res, $Val extends DietType>
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? alko = freezed,
|
||||
Object? light = freezed,
|
||||
Object? veg = freezed,
|
||||
Object? corb = freezed,
|
||||
Object? carb = freezed,
|
||||
Object? meat = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
alko: freezed == alko
|
||||
? _value.alko
|
||||
: alko // ignore: cast_nullable_to_non_nullable
|
||||
light: freezed == light
|
||||
? _value.light
|
||||
: light // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
veg: freezed == veg
|
||||
? _value.veg
|
||||
: veg // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
corb: freezed == corb
|
||||
? _value.corb
|
||||
: corb // ignore: cast_nullable_to_non_nullable
|
||||
carb: freezed == carb
|
||||
? _value.carb
|
||||
: carb // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
meat: freezed == meat
|
||||
? _value.meat
|
||||
@@ -1367,9 +1464,9 @@ abstract class _$$DietTypeImplCopyWith<$Res>
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: "alko") bool? alko,
|
||||
{@JsonKey(name: "light") bool? light,
|
||||
@JsonKey(name: "veg") bool? veg,
|
||||
@JsonKey(name: "corb") bool? corb,
|
||||
@JsonKey(name: "carb") bool? carb,
|
||||
@JsonKey(name: "meat") bool? meat});
|
||||
}
|
||||
|
||||
@@ -1386,23 +1483,23 @@ class __$$DietTypeImplCopyWithImpl<$Res>
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? alko = freezed,
|
||||
Object? light = freezed,
|
||||
Object? veg = freezed,
|
||||
Object? corb = freezed,
|
||||
Object? carb = freezed,
|
||||
Object? meat = freezed,
|
||||
}) {
|
||||
return _then(_$DietTypeImpl(
|
||||
alko: freezed == alko
|
||||
? _value.alko
|
||||
: alko // ignore: cast_nullable_to_non_nullable
|
||||
light: freezed == light
|
||||
? _value.light
|
||||
: light // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
veg: freezed == veg
|
||||
? _value.veg
|
||||
: veg // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
corb: freezed == corb
|
||||
? _value.corb
|
||||
: corb // ignore: cast_nullable_to_non_nullable
|
||||
carb: freezed == carb
|
||||
? _value.carb
|
||||
: carb // ignore: cast_nullable_to_non_nullable
|
||||
as bool?,
|
||||
meat: freezed == meat
|
||||
? _value.meat
|
||||
@@ -1416,30 +1513,30 @@ class __$$DietTypeImplCopyWithImpl<$Res>
|
||||
@JsonSerializable()
|
||||
class _$DietTypeImpl implements _DietType {
|
||||
const _$DietTypeImpl(
|
||||
{@JsonKey(name: "alko") this.alko,
|
||||
{@JsonKey(name: "light") this.light,
|
||||
@JsonKey(name: "veg") this.veg,
|
||||
@JsonKey(name: "corb") this.corb,
|
||||
@JsonKey(name: "carb") this.carb,
|
||||
@JsonKey(name: "meat") this.meat});
|
||||
|
||||
factory _$DietTypeImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$DietTypeImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: "alko")
|
||||
final bool? alko;
|
||||
@JsonKey(name: "light")
|
||||
final bool? light;
|
||||
@override
|
||||
@JsonKey(name: "veg")
|
||||
final bool? veg;
|
||||
@override
|
||||
@JsonKey(name: "corb")
|
||||
final bool? corb;
|
||||
@JsonKey(name: "carb")
|
||||
final bool? carb;
|
||||
@override
|
||||
@JsonKey(name: "meat")
|
||||
final bool? meat;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'DietType(alko: $alko, veg: $veg, corb: $corb, meat: $meat)';
|
||||
return 'DietType(light: $light, veg: $veg, carb: $carb, meat: $meat)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -1447,15 +1544,15 @@ class _$DietTypeImpl implements _DietType {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$DietTypeImpl &&
|
||||
(identical(other.alko, alko) || other.alko == alko) &&
|
||||
(identical(other.light, light) || other.light == light) &&
|
||||
(identical(other.veg, veg) || other.veg == veg) &&
|
||||
(identical(other.corb, corb) || other.corb == corb) &&
|
||||
(identical(other.carb, carb) || other.carb == carb) &&
|
||||
(identical(other.meat, meat) || other.meat == meat));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, alko, veg, corb, meat);
|
||||
int get hashCode => Object.hash(runtimeType, light, veg, carb, meat);
|
||||
|
||||
/// Create a copy of DietType
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -1475,23 +1572,23 @@ class _$DietTypeImpl implements _DietType {
|
||||
|
||||
abstract class _DietType implements DietType {
|
||||
const factory _DietType(
|
||||
{@JsonKey(name: "alko") final bool? alko,
|
||||
{@JsonKey(name: "light") final bool? light,
|
||||
@JsonKey(name: "veg") final bool? veg,
|
||||
@JsonKey(name: "corb") final bool? corb,
|
||||
@JsonKey(name: "carb") final bool? carb,
|
||||
@JsonKey(name: "meat") final bool? meat}) = _$DietTypeImpl;
|
||||
|
||||
factory _DietType.fromJson(Map<String, dynamic> json) =
|
||||
_$DietTypeImpl.fromJson;
|
||||
|
||||
@override
|
||||
@JsonKey(name: "alko")
|
||||
bool? get alko;
|
||||
@JsonKey(name: "light")
|
||||
bool? get light;
|
||||
@override
|
||||
@JsonKey(name: "veg")
|
||||
bool? get veg;
|
||||
@override
|
||||
@JsonKey(name: "corb")
|
||||
bool? get corb;
|
||||
@JsonKey(name: "carb")
|
||||
bool? get carb;
|
||||
@override
|
||||
@JsonKey(name: "meat")
|
||||
bool? get meat;
|
||||
|
||||
Reference in New Issue
Block a user