split bill
This commit is contained in:
@@ -2851,6 +2851,559 @@ abstract class _PaymentItemRequestDto extends PaymentItemRequestDto {
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
PaymentSplitBillRequestDto _$PaymentSplitBillRequestDtoFromJson(
|
||||
Map<String, dynamic> json,
|
||||
) {
|
||||
return _PaymentSplitBillRequestDto.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$PaymentSplitBillRequestDto {
|
||||
@JsonKey(name: "order_id")
|
||||
String? get orderId => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "payment_method_id")
|
||||
String? get paymentMethodId => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "customer_id")
|
||||
String? get customerId => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "customer_name")
|
||||
String? get customerName => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "type")
|
||||
String? get type => throw _privateConstructorUsedError; // e.g., "AMOUNT" or "ITEM"
|
||||
@JsonKey(name: "amount")
|
||||
int? get amount => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "items")
|
||||
List<PaymentItemSplitBillRequestDto>? get items =>
|
||||
throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this PaymentSplitBillRequestDto to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of PaymentSplitBillRequestDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$PaymentSplitBillRequestDtoCopyWith<PaymentSplitBillRequestDto>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $PaymentSplitBillRequestDtoCopyWith<$Res> {
|
||||
factory $PaymentSplitBillRequestDtoCopyWith(
|
||||
PaymentSplitBillRequestDto value,
|
||||
$Res Function(PaymentSplitBillRequestDto) then,
|
||||
) =
|
||||
_$PaymentSplitBillRequestDtoCopyWithImpl<
|
||||
$Res,
|
||||
PaymentSplitBillRequestDto
|
||||
>;
|
||||
@useResult
|
||||
$Res call({
|
||||
@JsonKey(name: "order_id") String? orderId,
|
||||
@JsonKey(name: "payment_method_id") String? paymentMethodId,
|
||||
@JsonKey(name: "customer_id") String? customerId,
|
||||
@JsonKey(name: "customer_name") String? customerName,
|
||||
@JsonKey(name: "type") String? type,
|
||||
@JsonKey(name: "amount") int? amount,
|
||||
@JsonKey(name: "items") List<PaymentItemSplitBillRequestDto>? items,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$PaymentSplitBillRequestDtoCopyWithImpl<
|
||||
$Res,
|
||||
$Val extends PaymentSplitBillRequestDto
|
||||
>
|
||||
implements $PaymentSplitBillRequestDtoCopyWith<$Res> {
|
||||
_$PaymentSplitBillRequestDtoCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of PaymentSplitBillRequestDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? orderId = freezed,
|
||||
Object? paymentMethodId = freezed,
|
||||
Object? customerId = freezed,
|
||||
Object? customerName = freezed,
|
||||
Object? type = freezed,
|
||||
Object? amount = freezed,
|
||||
Object? items = freezed,
|
||||
}) {
|
||||
return _then(
|
||||
_value.copyWith(
|
||||
orderId: freezed == orderId
|
||||
? _value.orderId
|
||||
: orderId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
paymentMethodId: freezed == paymentMethodId
|
||||
? _value.paymentMethodId
|
||||
: paymentMethodId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
customerId: freezed == customerId
|
||||
? _value.customerId
|
||||
: customerId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
customerName: freezed == customerName
|
||||
? _value.customerName
|
||||
: customerName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
type: freezed == type
|
||||
? _value.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
amount: freezed == amount
|
||||
? _value.amount
|
||||
: amount // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
items: freezed == items
|
||||
? _value.items
|
||||
: items // ignore: cast_nullable_to_non_nullable
|
||||
as List<PaymentItemSplitBillRequestDto>?,
|
||||
)
|
||||
as $Val,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentSplitBillRequestDtoImplCopyWith<$Res>
|
||||
implements $PaymentSplitBillRequestDtoCopyWith<$Res> {
|
||||
factory _$$PaymentSplitBillRequestDtoImplCopyWith(
|
||||
_$PaymentSplitBillRequestDtoImpl value,
|
||||
$Res Function(_$PaymentSplitBillRequestDtoImpl) then,
|
||||
) = __$$PaymentSplitBillRequestDtoImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({
|
||||
@JsonKey(name: "order_id") String? orderId,
|
||||
@JsonKey(name: "payment_method_id") String? paymentMethodId,
|
||||
@JsonKey(name: "customer_id") String? customerId,
|
||||
@JsonKey(name: "customer_name") String? customerName,
|
||||
@JsonKey(name: "type") String? type,
|
||||
@JsonKey(name: "amount") int? amount,
|
||||
@JsonKey(name: "items") List<PaymentItemSplitBillRequestDto>? items,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$PaymentSplitBillRequestDtoImplCopyWithImpl<$Res>
|
||||
extends
|
||||
_$PaymentSplitBillRequestDtoCopyWithImpl<
|
||||
$Res,
|
||||
_$PaymentSplitBillRequestDtoImpl
|
||||
>
|
||||
implements _$$PaymentSplitBillRequestDtoImplCopyWith<$Res> {
|
||||
__$$PaymentSplitBillRequestDtoImplCopyWithImpl(
|
||||
_$PaymentSplitBillRequestDtoImpl _value,
|
||||
$Res Function(_$PaymentSplitBillRequestDtoImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of PaymentSplitBillRequestDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? orderId = freezed,
|
||||
Object? paymentMethodId = freezed,
|
||||
Object? customerId = freezed,
|
||||
Object? customerName = freezed,
|
||||
Object? type = freezed,
|
||||
Object? amount = freezed,
|
||||
Object? items = freezed,
|
||||
}) {
|
||||
return _then(
|
||||
_$PaymentSplitBillRequestDtoImpl(
|
||||
orderId: freezed == orderId
|
||||
? _value.orderId
|
||||
: orderId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
paymentMethodId: freezed == paymentMethodId
|
||||
? _value.paymentMethodId
|
||||
: paymentMethodId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
customerId: freezed == customerId
|
||||
? _value.customerId
|
||||
: customerId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
customerName: freezed == customerName
|
||||
? _value.customerName
|
||||
: customerName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
type: freezed == type
|
||||
? _value.type
|
||||
: type // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
amount: freezed == amount
|
||||
? _value.amount
|
||||
: amount // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
items: freezed == items
|
||||
? _value._items
|
||||
: items // ignore: cast_nullable_to_non_nullable
|
||||
as List<PaymentItemSplitBillRequestDto>?,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$PaymentSplitBillRequestDtoImpl extends _PaymentSplitBillRequestDto {
|
||||
const _$PaymentSplitBillRequestDtoImpl({
|
||||
@JsonKey(name: "order_id") this.orderId,
|
||||
@JsonKey(name: "payment_method_id") this.paymentMethodId,
|
||||
@JsonKey(name: "customer_id") this.customerId,
|
||||
@JsonKey(name: "customer_name") this.customerName,
|
||||
@JsonKey(name: "type") this.type,
|
||||
@JsonKey(name: "amount") this.amount,
|
||||
@JsonKey(name: "items") final List<PaymentItemSplitBillRequestDto>? items,
|
||||
}) : _items = items,
|
||||
super._();
|
||||
|
||||
factory _$PaymentSplitBillRequestDtoImpl.fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _$$PaymentSplitBillRequestDtoImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: "order_id")
|
||||
final String? orderId;
|
||||
@override
|
||||
@JsonKey(name: "payment_method_id")
|
||||
final String? paymentMethodId;
|
||||
@override
|
||||
@JsonKey(name: "customer_id")
|
||||
final String? customerId;
|
||||
@override
|
||||
@JsonKey(name: "customer_name")
|
||||
final String? customerName;
|
||||
@override
|
||||
@JsonKey(name: "type")
|
||||
final String? type;
|
||||
// e.g., "AMOUNT" or "ITEM"
|
||||
@override
|
||||
@JsonKey(name: "amount")
|
||||
final int? amount;
|
||||
final List<PaymentItemSplitBillRequestDto>? _items;
|
||||
@override
|
||||
@JsonKey(name: "items")
|
||||
List<PaymentItemSplitBillRequestDto>? get items {
|
||||
final value = _items;
|
||||
if (value == null) return null;
|
||||
if (_items is EqualUnmodifiableListView) return _items;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(value);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'PaymentSplitBillRequestDto(orderId: $orderId, paymentMethodId: $paymentMethodId, customerId: $customerId, customerName: $customerName, type: $type, amount: $amount, items: $items)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$PaymentSplitBillRequestDtoImpl &&
|
||||
(identical(other.orderId, orderId) || other.orderId == orderId) &&
|
||||
(identical(other.paymentMethodId, paymentMethodId) ||
|
||||
other.paymentMethodId == paymentMethodId) &&
|
||||
(identical(other.customerId, customerId) ||
|
||||
other.customerId == customerId) &&
|
||||
(identical(other.customerName, customerName) ||
|
||||
other.customerName == customerName) &&
|
||||
(identical(other.type, type) || other.type == type) &&
|
||||
(identical(other.amount, amount) || other.amount == amount) &&
|
||||
const DeepCollectionEquality().equals(other._items, _items));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
orderId,
|
||||
paymentMethodId,
|
||||
customerId,
|
||||
customerName,
|
||||
type,
|
||||
amount,
|
||||
const DeepCollectionEquality().hash(_items),
|
||||
);
|
||||
|
||||
/// Create a copy of PaymentSplitBillRequestDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$PaymentSplitBillRequestDtoImplCopyWith<_$PaymentSplitBillRequestDtoImpl>
|
||||
get copyWith =>
|
||||
__$$PaymentSplitBillRequestDtoImplCopyWithImpl<
|
||||
_$PaymentSplitBillRequestDtoImpl
|
||||
>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$PaymentSplitBillRequestDtoImplToJson(this);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _PaymentSplitBillRequestDto extends PaymentSplitBillRequestDto {
|
||||
const factory _PaymentSplitBillRequestDto({
|
||||
@JsonKey(name: "order_id") final String? orderId,
|
||||
@JsonKey(name: "payment_method_id") final String? paymentMethodId,
|
||||
@JsonKey(name: "customer_id") final String? customerId,
|
||||
@JsonKey(name: "customer_name") final String? customerName,
|
||||
@JsonKey(name: "type") final String? type,
|
||||
@JsonKey(name: "amount") final int? amount,
|
||||
@JsonKey(name: "items") final List<PaymentItemSplitBillRequestDto>? items,
|
||||
}) = _$PaymentSplitBillRequestDtoImpl;
|
||||
const _PaymentSplitBillRequestDto._() : super._();
|
||||
|
||||
factory _PaymentSplitBillRequestDto.fromJson(Map<String, dynamic> json) =
|
||||
_$PaymentSplitBillRequestDtoImpl.fromJson;
|
||||
|
||||
@override
|
||||
@JsonKey(name: "order_id")
|
||||
String? get orderId;
|
||||
@override
|
||||
@JsonKey(name: "payment_method_id")
|
||||
String? get paymentMethodId;
|
||||
@override
|
||||
@JsonKey(name: "customer_id")
|
||||
String? get customerId;
|
||||
@override
|
||||
@JsonKey(name: "customer_name")
|
||||
String? get customerName;
|
||||
@override
|
||||
@JsonKey(name: "type")
|
||||
String? get type; // e.g., "AMOUNT" or "ITEM"
|
||||
@override
|
||||
@JsonKey(name: "amount")
|
||||
int? get amount;
|
||||
@override
|
||||
@JsonKey(name: "items")
|
||||
List<PaymentItemSplitBillRequestDto>? get items;
|
||||
|
||||
/// Create a copy of PaymentSplitBillRequestDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$PaymentSplitBillRequestDtoImplCopyWith<_$PaymentSplitBillRequestDtoImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
PaymentItemSplitBillRequestDto _$PaymentItemSplitBillRequestDtoFromJson(
|
||||
Map<String, dynamic> json,
|
||||
) {
|
||||
return _PaymentItemSplitBillRequestDto.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$PaymentItemSplitBillRequestDto {
|
||||
@JsonKey(name: "order_item_id")
|
||||
String? get orderItemId => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "quantity")
|
||||
int? get quantity => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this PaymentItemSplitBillRequestDto to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of PaymentItemSplitBillRequestDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$PaymentItemSplitBillRequestDtoCopyWith<PaymentItemSplitBillRequestDto>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $PaymentItemSplitBillRequestDtoCopyWith<$Res> {
|
||||
factory $PaymentItemSplitBillRequestDtoCopyWith(
|
||||
PaymentItemSplitBillRequestDto value,
|
||||
$Res Function(PaymentItemSplitBillRequestDto) then,
|
||||
) =
|
||||
_$PaymentItemSplitBillRequestDtoCopyWithImpl<
|
||||
$Res,
|
||||
PaymentItemSplitBillRequestDto
|
||||
>;
|
||||
@useResult
|
||||
$Res call({
|
||||
@JsonKey(name: "order_item_id") String? orderItemId,
|
||||
@JsonKey(name: "quantity") int? quantity,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$PaymentItemSplitBillRequestDtoCopyWithImpl<
|
||||
$Res,
|
||||
$Val extends PaymentItemSplitBillRequestDto
|
||||
>
|
||||
implements $PaymentItemSplitBillRequestDtoCopyWith<$Res> {
|
||||
_$PaymentItemSplitBillRequestDtoCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of PaymentItemSplitBillRequestDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({Object? orderItemId = freezed, Object? quantity = freezed}) {
|
||||
return _then(
|
||||
_value.copyWith(
|
||||
orderItemId: freezed == orderItemId
|
||||
? _value.orderItemId
|
||||
: orderItemId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
quantity: freezed == quantity
|
||||
? _value.quantity
|
||||
: quantity // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
)
|
||||
as $Val,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$PaymentItemSplitBillRequestDtoImplCopyWith<$Res>
|
||||
implements $PaymentItemSplitBillRequestDtoCopyWith<$Res> {
|
||||
factory _$$PaymentItemSplitBillRequestDtoImplCopyWith(
|
||||
_$PaymentItemSplitBillRequestDtoImpl value,
|
||||
$Res Function(_$PaymentItemSplitBillRequestDtoImpl) then,
|
||||
) = __$$PaymentItemSplitBillRequestDtoImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({
|
||||
@JsonKey(name: "order_item_id") String? orderItemId,
|
||||
@JsonKey(name: "quantity") int? quantity,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$PaymentItemSplitBillRequestDtoImplCopyWithImpl<$Res>
|
||||
extends
|
||||
_$PaymentItemSplitBillRequestDtoCopyWithImpl<
|
||||
$Res,
|
||||
_$PaymentItemSplitBillRequestDtoImpl
|
||||
>
|
||||
implements _$$PaymentItemSplitBillRequestDtoImplCopyWith<$Res> {
|
||||
__$$PaymentItemSplitBillRequestDtoImplCopyWithImpl(
|
||||
_$PaymentItemSplitBillRequestDtoImpl _value,
|
||||
$Res Function(_$PaymentItemSplitBillRequestDtoImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of PaymentItemSplitBillRequestDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({Object? orderItemId = freezed, Object? quantity = freezed}) {
|
||||
return _then(
|
||||
_$PaymentItemSplitBillRequestDtoImpl(
|
||||
orderItemId: freezed == orderItemId
|
||||
? _value.orderItemId
|
||||
: orderItemId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
quantity: freezed == quantity
|
||||
? _value.quantity
|
||||
: quantity // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$PaymentItemSplitBillRequestDtoImpl
|
||||
extends _PaymentItemSplitBillRequestDto {
|
||||
const _$PaymentItemSplitBillRequestDtoImpl({
|
||||
@JsonKey(name: "order_item_id") this.orderItemId,
|
||||
@JsonKey(name: "quantity") this.quantity,
|
||||
}) : super._();
|
||||
|
||||
factory _$PaymentItemSplitBillRequestDtoImpl.fromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => _$$PaymentItemSplitBillRequestDtoImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: "order_item_id")
|
||||
final String? orderItemId;
|
||||
@override
|
||||
@JsonKey(name: "quantity")
|
||||
final int? quantity;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'PaymentItemSplitBillRequestDto(orderItemId: $orderItemId, quantity: $quantity)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$PaymentItemSplitBillRequestDtoImpl &&
|
||||
(identical(other.orderItemId, orderItemId) ||
|
||||
other.orderItemId == orderItemId) &&
|
||||
(identical(other.quantity, quantity) ||
|
||||
other.quantity == quantity));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, orderItemId, quantity);
|
||||
|
||||
/// Create a copy of PaymentItemSplitBillRequestDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$PaymentItemSplitBillRequestDtoImplCopyWith<
|
||||
_$PaymentItemSplitBillRequestDtoImpl
|
||||
>
|
||||
get copyWith =>
|
||||
__$$PaymentItemSplitBillRequestDtoImplCopyWithImpl<
|
||||
_$PaymentItemSplitBillRequestDtoImpl
|
||||
>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$PaymentItemSplitBillRequestDtoImplToJson(this);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _PaymentItemSplitBillRequestDto
|
||||
extends PaymentItemSplitBillRequestDto {
|
||||
const factory _PaymentItemSplitBillRequestDto({
|
||||
@JsonKey(name: "order_item_id") final String? orderItemId,
|
||||
@JsonKey(name: "quantity") final int? quantity,
|
||||
}) = _$PaymentItemSplitBillRequestDtoImpl;
|
||||
const _PaymentItemSplitBillRequestDto._() : super._();
|
||||
|
||||
factory _PaymentItemSplitBillRequestDto.fromJson(Map<String, dynamic> json) =
|
||||
_$PaymentItemSplitBillRequestDtoImpl.fromJson;
|
||||
|
||||
@override
|
||||
@JsonKey(name: "order_item_id")
|
||||
String? get orderItemId;
|
||||
@override
|
||||
@JsonKey(name: "quantity")
|
||||
int? get quantity;
|
||||
|
||||
/// Create a copy of PaymentItemSplitBillRequestDto
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$PaymentItemSplitBillRequestDtoImplCopyWith<
|
||||
_$PaymentItemSplitBillRequestDtoImpl
|
||||
>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
PaymentDto _$PaymentDtoFromJson(Map<String, dynamic> json) {
|
||||
return _PaymentOrderDto.fromJson(json);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user