split bill
This commit is contained in:
@@ -220,6 +220,49 @@ Map<String, dynamic> _$$PaymentItemRequestDtoImplToJson(
|
||||
'amount': instance.amount,
|
||||
};
|
||||
|
||||
_$PaymentSplitBillRequestDtoImpl _$$PaymentSplitBillRequestDtoImplFromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _$PaymentSplitBillRequestDtoImpl(
|
||||
orderId: json['order_id'] as String?,
|
||||
paymentMethodId: json['payment_method_id'] as String?,
|
||||
customerId: json['customer_id'] as String?,
|
||||
customerName: json['customer_name'] as String?,
|
||||
type: json['type'] as String?,
|
||||
amount: (json['amount'] as num?)?.toInt(),
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map(
|
||||
(e) =>
|
||||
PaymentItemSplitBillRequestDto.fromJson(e as Map<String, dynamic>),
|
||||
)
|
||||
.toList(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$PaymentSplitBillRequestDtoImplToJson(
|
||||
_$PaymentSplitBillRequestDtoImpl instance,
|
||||
) => <String, dynamic>{
|
||||
'order_id': instance.orderId,
|
||||
'payment_method_id': instance.paymentMethodId,
|
||||
'customer_id': instance.customerId,
|
||||
'customer_name': instance.customerName,
|
||||
'type': instance.type,
|
||||
'amount': instance.amount,
|
||||
'items': instance.items,
|
||||
};
|
||||
|
||||
_$PaymentItemSplitBillRequestDtoImpl
|
||||
_$$PaymentItemSplitBillRequestDtoImplFromJson(Map<String, dynamic> json) =>
|
||||
_$PaymentItemSplitBillRequestDtoImpl(
|
||||
orderItemId: json['order_item_id'] as String?,
|
||||
quantity: (json['quantity'] as num?)?.toInt(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$PaymentItemSplitBillRequestDtoImplToJson(
|
||||
_$PaymentItemSplitBillRequestDtoImpl instance,
|
||||
) => <String, dynamic>{
|
||||
'order_item_id': instance.orderItemId,
|
||||
'quantity': instance.quantity,
|
||||
};
|
||||
|
||||
_$PaymentOrderDtoImpl _$$PaymentOrderDtoImplFromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _$PaymentOrderDtoImpl(
|
||||
|
||||
Reference in New Issue
Block a user