fix(diary): Remove portion API call fixed

This commit is contained in:
2024-07-19 15:51:39 +03:00
parent be461e4183
commit 7535e82422
10 changed files with 217 additions and 195 deletions

View File

@@ -21,7 +21,7 @@ Portion _$PortionFromJson(Map<String, dynamic> json) {
/// @nodoc
mixin _$Portion {
int get id => throw _privateConstructorUsedError;
String get productName => throw _privateConstructorUsedError;
String get product_name => throw _privateConstructorUsedError;
int get quantity => throw _privateConstructorUsedError;
String get portion => throw _privateConstructorUsedError;
@@ -35,7 +35,7 @@ abstract class $PortionCopyWith<$Res> {
factory $PortionCopyWith(Portion value, $Res Function(Portion) then) =
_$PortionCopyWithImpl<$Res, Portion>;
@useResult
$Res call({int id, String productName, int quantity, String portion});
$Res call({int id, String product_name, int quantity, String portion});
}
/// @nodoc
@@ -52,7 +52,7 @@ class _$PortionCopyWithImpl<$Res, $Val extends Portion>
@override
$Res call({
Object? id = null,
Object? productName = null,
Object? product_name = null,
Object? quantity = null,
Object? portion = null,
}) {
@@ -61,9 +61,9 @@ class _$PortionCopyWithImpl<$Res, $Val extends Portion>
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
productName: null == productName
? _value.productName
: productName // ignore: cast_nullable_to_non_nullable
product_name: null == product_name
? _value.product_name
: product_name // ignore: cast_nullable_to_non_nullable
as String,
quantity: null == quantity
? _value.quantity
@@ -84,7 +84,7 @@ abstract class _$$PortionImplCopyWith<$Res> implements $PortionCopyWith<$Res> {
__$$PortionImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({int id, String productName, int quantity, String portion});
$Res call({int id, String product_name, int quantity, String portion});
}
/// @nodoc
@@ -99,7 +99,7 @@ class __$$PortionImplCopyWithImpl<$Res>
@override
$Res call({
Object? id = null,
Object? productName = null,
Object? product_name = null,
Object? quantity = null,
Object? portion = null,
}) {
@@ -108,9 +108,9 @@ class __$$PortionImplCopyWithImpl<$Res>
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
productName: null == productName
? _value.productName
: productName // ignore: cast_nullable_to_non_nullable
product_name: null == product_name
? _value.product_name
: product_name // ignore: cast_nullable_to_non_nullable
as String,
quantity: null == quantity
? _value.quantity
@@ -129,7 +129,7 @@ class __$$PortionImplCopyWithImpl<$Res>
class _$PortionImpl implements _Portion {
const _$PortionImpl(
{required this.id,
required this.productName,
required this.product_name,
required this.quantity,
required this.portion});
@@ -139,7 +139,7 @@ class _$PortionImpl implements _Portion {
@override
final int id;
@override
final String productName;
final String product_name;
@override
final int quantity;
@override
@@ -147,7 +147,7 @@ class _$PortionImpl implements _Portion {
@override
String toString() {
return 'Portion(id: $id, productName: $productName, quantity: $quantity, portion: $portion)';
return 'Portion(id: $id, product_name: $product_name, quantity: $quantity, portion: $portion)';
}
@override
@@ -156,8 +156,8 @@ class _$PortionImpl implements _Portion {
(other.runtimeType == runtimeType &&
other is _$PortionImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.productName, productName) ||
other.productName == productName) &&
(identical(other.product_name, product_name) ||
other.product_name == product_name) &&
(identical(other.quantity, quantity) ||
other.quantity == quantity) &&
(identical(other.portion, portion) || other.portion == portion));
@@ -166,7 +166,7 @@ class _$PortionImpl implements _Portion {
@JsonKey(ignore: true)
@override
int get hashCode =>
Object.hash(runtimeType, id, productName, quantity, portion);
Object.hash(runtimeType, id, product_name, quantity, portion);
@JsonKey(ignore: true)
@override
@@ -185,7 +185,7 @@ class _$PortionImpl implements _Portion {
abstract class _Portion implements Portion {
const factory _Portion(
{required final int id,
required final String productName,
required final String product_name,
required final int quantity,
required final String portion}) = _$PortionImpl;
@@ -194,7 +194,7 @@ abstract class _Portion implements Portion {
@override
int get id;
@override
String get productName;
String get product_name;
@override
int get quantity;
@override