2025-08-18 14:24:15 +07:00
// 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 'order.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. \n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models' ,
);
/// @nodoc
mixin _$Order {
String get id => throw _privateConstructorUsedError ;
String get orderNumber => throw _privateConstructorUsedError ;
String get outletId => throw _privateConstructorUsedError ;
String get userId => throw _privateConstructorUsedError ;
String get tableNumber => throw _privateConstructorUsedError ;
String get orderType => throw _privateConstructorUsedError ;
String get status => throw _privateConstructorUsedError ;
int get subtotal => throw _privateConstructorUsedError ;
int get taxAmount => throw _privateConstructorUsedError ;
int get discountAmount => throw _privateConstructorUsedError ;
int get totalAmount => throw _privateConstructorUsedError ;
int get totalCost => throw _privateConstructorUsedError ;
int get remainingAmount => throw _privateConstructorUsedError ;
String get paymentStatus => throw _privateConstructorUsedError ;
int get refundAmount => throw _privateConstructorUsedError ;
bool get isVoid => throw _privateConstructorUsedError ;
bool get isRefund => throw _privateConstructorUsedError ;
String get notes => throw _privateConstructorUsedError ;
Map < String , dynamic > get metadata => throw _privateConstructorUsedError ;
String get createdAt => throw _privateConstructorUsedError ;
String get updatedAt => throw _privateConstructorUsedError ;
List < OrderItem > get orderItems => throw _privateConstructorUsedError ;
List < OrderPayment > get payments => throw _privateConstructorUsedError ;
int get totalPaid => throw _privateConstructorUsedError ;
int get paymentCount => throw _privateConstructorUsedError ;
String get splitType => throw _privateConstructorUsedError ;
/// Create a copy of Order
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$OrderCopyWith < Order > get copyWith => throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $OrderCopyWith < $Res > {
factory $OrderCopyWith ( Order value , $Res Function ( Order ) then ) =
_$OrderCopyWithImpl < $Res , Order > ;
@ useResult
$Res call ({
String id ,
String orderNumber ,
String outletId ,
String userId ,
String tableNumber ,
String orderType ,
String status ,
int subtotal ,
int taxAmount ,
int discountAmount ,
int totalAmount ,
int totalCost ,
int remainingAmount ,
String paymentStatus ,
int refundAmount ,
bool isVoid ,
bool isRefund ,
String notes ,
Map < String , dynamic > metadata ,
String createdAt ,
String updatedAt ,
List < OrderItem > orderItems ,
List < OrderPayment > payments ,
int totalPaid ,
int paymentCount ,
String splitType ,
});
}
/// @nodoc
class _ $OrderCopyWithImpl < $Res , $Val extends Order >
implements $OrderCopyWith < $Res > {
_$OrderCopyWithImpl ( this . _value , this . _then );
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of Order
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({
Object ? id = null ,
Object ? orderNumber = null ,
Object ? outletId = null ,
Object ? userId = null ,
Object ? tableNumber = null ,
Object ? orderType = null ,
Object ? status = null ,
Object ? subtotal = null ,
Object ? taxAmount = null ,
Object ? discountAmount = null ,
Object ? totalAmount = null ,
Object ? totalCost = null ,
Object ? remainingAmount = null ,
Object ? paymentStatus = null ,
Object ? refundAmount = null ,
Object ? isVoid = null ,
Object ? isRefund = null ,
Object ? notes = null ,
Object ? metadata = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
Object ? orderItems = null ,
Object ? payments = null ,
Object ? totalPaid = null ,
Object ? paymentCount = null ,
Object ? splitType = null ,
}) {
return _then (
_value . copyWith (
id: null == id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as String ,
orderNumber: null == orderNumber
? _value . orderNumber
: orderNumber // ignore: cast_nullable_to_non_nullable
as String ,
outletId: null == outletId
? _value . outletId
: outletId // ignore: cast_nullable_to_non_nullable
as String ,
userId: null == userId
? _value . userId
: userId // ignore: cast_nullable_to_non_nullable
as String ,
tableNumber: null == tableNumber
? _value . tableNumber
: tableNumber // ignore: cast_nullable_to_non_nullable
as String ,
orderType: null == orderType
? _value . orderType
: orderType // ignore: cast_nullable_to_non_nullable
as String ,
status: null == status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as String ,
subtotal: null == subtotal
? _value . subtotal
: subtotal // ignore: cast_nullable_to_non_nullable
as int ,
taxAmount: null == taxAmount
? _value . taxAmount
: taxAmount // ignore: cast_nullable_to_non_nullable
as int ,
discountAmount: null == discountAmount
? _value . discountAmount
: discountAmount // ignore: cast_nullable_to_non_nullable
as int ,
totalAmount: null == totalAmount
? _value . totalAmount
: totalAmount // ignore: cast_nullable_to_non_nullable
as int ,
totalCost: null == totalCost
? _value . totalCost
: totalCost // ignore: cast_nullable_to_non_nullable
as int ,
remainingAmount: null == remainingAmount
? _value . remainingAmount
: remainingAmount // ignore: cast_nullable_to_non_nullable
as int ,
paymentStatus: null == paymentStatus
? _value . paymentStatus
: paymentStatus // ignore: cast_nullable_to_non_nullable
as String ,
refundAmount: null == refundAmount
? _value . refundAmount
: refundAmount // ignore: cast_nullable_to_non_nullable
as int ,
isVoid: null == isVoid
? _value . isVoid
: isVoid // ignore: cast_nullable_to_non_nullable
as bool ,
isRefund: null == isRefund
? _value . isRefund
: isRefund // ignore: cast_nullable_to_non_nullable
as bool ,
notes: null == notes
? _value . notes
: notes // ignore: cast_nullable_to_non_nullable
as String ,
metadata: null == metadata
? _value . metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
createdAt: null == createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as String ,
updatedAt: null == updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as String ,
orderItems: null == orderItems
? _value . orderItems
: orderItems // ignore: cast_nullable_to_non_nullable
as List < OrderItem > ,
payments: null == payments
? _value . payments
: payments // ignore: cast_nullable_to_non_nullable
as List < OrderPayment > ,
totalPaid: null == totalPaid
? _value . totalPaid
: totalPaid // ignore: cast_nullable_to_non_nullable
as int ,
paymentCount: null == paymentCount
? _value . paymentCount
: paymentCount // ignore: cast_nullable_to_non_nullable
as int ,
splitType: null == splitType
? _value . splitType
: splitType // ignore: cast_nullable_to_non_nullable
as String ,
)
as $Val ,
);
}
}
/// @nodoc
abstract class _ $$OrderImplCopyWith < $Res > implements $OrderCopyWith < $Res > {
factory _$$OrderImplCopyWith (
_$OrderImpl value ,
$Res Function ( _$OrderImpl ) then ,
) = __$$OrderImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ({
String id ,
String orderNumber ,
String outletId ,
String userId ,
String tableNumber ,
String orderType ,
String status ,
int subtotal ,
int taxAmount ,
int discountAmount ,
int totalAmount ,
int totalCost ,
int remainingAmount ,
String paymentStatus ,
int refundAmount ,
bool isVoid ,
bool isRefund ,
String notes ,
Map < String , dynamic > metadata ,
String createdAt ,
String updatedAt ,
List < OrderItem > orderItems ,
List < OrderPayment > payments ,
int totalPaid ,
int paymentCount ,
String splitType ,
});
}
/// @nodoc
class __ $$OrderImplCopyWithImpl < $Res >
extends _$OrderCopyWithImpl < $Res , _$OrderImpl >
implements _$$OrderImplCopyWith < $Res > {
__$$OrderImplCopyWithImpl (
_$OrderImpl _value ,
$Res Function ( _$OrderImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of Order
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({
Object ? id = null ,
Object ? orderNumber = null ,
Object ? outletId = null ,
Object ? userId = null ,
Object ? tableNumber = null ,
Object ? orderType = null ,
Object ? status = null ,
Object ? subtotal = null ,
Object ? taxAmount = null ,
Object ? discountAmount = null ,
Object ? totalAmount = null ,
Object ? totalCost = null ,
Object ? remainingAmount = null ,
Object ? paymentStatus = null ,
Object ? refundAmount = null ,
Object ? isVoid = null ,
Object ? isRefund = null ,
Object ? notes = null ,
Object ? metadata = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
Object ? orderItems = null ,
Object ? payments = null ,
Object ? totalPaid = null ,
Object ? paymentCount = null ,
Object ? splitType = null ,
}) {
return _then (
_$OrderImpl (
id: null == id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as String ,
orderNumber: null == orderNumber
? _value . orderNumber
: orderNumber // ignore: cast_nullable_to_non_nullable
as String ,
outletId: null == outletId
? _value . outletId
: outletId // ignore: cast_nullable_to_non_nullable
as String ,
userId: null == userId
? _value . userId
: userId // ignore: cast_nullable_to_non_nullable
as String ,
tableNumber: null == tableNumber
? _value . tableNumber
: tableNumber // ignore: cast_nullable_to_non_nullable
as String ,
orderType: null == orderType
? _value . orderType
: orderType // ignore: cast_nullable_to_non_nullable
as String ,
status: null == status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as String ,
subtotal: null == subtotal
? _value . subtotal
: subtotal // ignore: cast_nullable_to_non_nullable
as int ,
taxAmount: null == taxAmount
? _value . taxAmount
: taxAmount // ignore: cast_nullable_to_non_nullable
as int ,
discountAmount: null == discountAmount
? _value . discountAmount
: discountAmount // ignore: cast_nullable_to_non_nullable
as int ,
totalAmount: null == totalAmount
? _value . totalAmount
: totalAmount // ignore: cast_nullable_to_non_nullable
as int ,
totalCost: null == totalCost
? _value . totalCost
: totalCost // ignore: cast_nullable_to_non_nullable
as int ,
remainingAmount: null == remainingAmount
? _value . remainingAmount
: remainingAmount // ignore: cast_nullable_to_non_nullable
as int ,
paymentStatus: null == paymentStatus
? _value . paymentStatus
: paymentStatus // ignore: cast_nullable_to_non_nullable
as String ,
refundAmount: null == refundAmount
? _value . refundAmount
: refundAmount // ignore: cast_nullable_to_non_nullable
as int ,
isVoid: null == isVoid
? _value . isVoid
: isVoid // ignore: cast_nullable_to_non_nullable
as bool ,
isRefund: null == isRefund
? _value . isRefund
: isRefund // ignore: cast_nullable_to_non_nullable
as bool ,
notes: null == notes
? _value . notes
: notes // ignore: cast_nullable_to_non_nullable
as String ,
metadata: null == metadata
? _value . _metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
createdAt: null == createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as String ,
updatedAt: null == updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as String ,
orderItems: null == orderItems
? _value . _orderItems
: orderItems // ignore: cast_nullable_to_non_nullable
as List < OrderItem > ,
payments: null == payments
? _value . _payments
: payments // ignore: cast_nullable_to_non_nullable
as List < OrderPayment > ,
totalPaid: null == totalPaid
? _value . totalPaid
: totalPaid // ignore: cast_nullable_to_non_nullable
as int ,
paymentCount: null == paymentCount
? _value . paymentCount
: paymentCount // ignore: cast_nullable_to_non_nullable
as int ,
splitType: null == splitType
? _value . splitType
: splitType // ignore: cast_nullable_to_non_nullable
as String ,
),
);
}
}
/// @nodoc
class _ $OrderImpl implements _Order {
const _$OrderImpl ({
required this . id ,
required this . orderNumber ,
required this . outletId ,
required this . userId ,
required this . tableNumber ,
required this . orderType ,
required this . status ,
required this . subtotal ,
required this . taxAmount ,
required this . discountAmount ,
required this . totalAmount ,
required this . totalCost ,
required this . remainingAmount ,
required this . paymentStatus ,
required this . refundAmount ,
required this . isVoid ,
required this . isRefund ,
required this . notes ,
required final Map < String , dynamic > metadata ,
required this . createdAt ,
required this . updatedAt ,
required final List < OrderItem > orderItems ,
required final List < OrderPayment > payments ,
required this . totalPaid ,
required this . paymentCount ,
required this . splitType ,
}) : _metadata = metadata ,
_orderItems = orderItems ,
_payments = payments ;
@ override
final String id ;
@ override
final String orderNumber ;
@ override
final String outletId ;
@ override
final String userId ;
@ override
final String tableNumber ;
@ override
final String orderType ;
@ override
final String status ;
@ override
final int subtotal ;
@ override
final int taxAmount ;
@ override
final int discountAmount ;
@ override
final int totalAmount ;
@ override
final int totalCost ;
@ override
final int remainingAmount ;
@ override
final String paymentStatus ;
@ override
final int refundAmount ;
@ override
final bool isVoid ;
@ override
final bool isRefund ;
@ override
final String notes ;
final Map < String , dynamic > _metadata ;
@ override
Map < String , dynamic > get metadata {
if ( _metadata is EqualUnmodifiableMapView ) return _metadata ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _metadata );
}
@ override
final String createdAt ;
@ override
final String updatedAt ;
final List < OrderItem > _orderItems ;
@ override
List < OrderItem > get orderItems {
if ( _orderItems is EqualUnmodifiableListView ) return _orderItems ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _orderItems );
}
final List < OrderPayment > _payments ;
@ override
List < OrderPayment > get payments {
if ( _payments is EqualUnmodifiableListView ) return _payments ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _payments );
}
@ override
final int totalPaid ;
@ override
final int paymentCount ;
@ override
final String splitType ;
@ override
String toString () {
return 'Order(id: $ id , orderNumber: $ orderNumber , outletId: $ outletId , userId: $ userId , tableNumber: $ tableNumber , orderType: $ orderType , status: $ status , subtotal: $ subtotal , taxAmount: $ taxAmount , discountAmount: $ discountAmount , totalAmount: $ totalAmount , totalCost: $ totalCost , remainingAmount: $ remainingAmount , paymentStatus: $ paymentStatus , refundAmount: $ refundAmount , isVoid: $ isVoid , isRefund: $ isRefund , notes: $ notes , metadata: $ metadata , createdAt: $ createdAt , updatedAt: $ updatedAt , orderItems: $ orderItems , payments: $ payments , totalPaid: $ totalPaid , paymentCount: $ paymentCount , splitType: $ splitType )' ;
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType &&
other is _$OrderImpl &&
( identical ( other . id , id ) || other . id == id ) &&
( identical ( other . orderNumber , orderNumber ) ||
other . orderNumber == orderNumber ) &&
( identical ( other . outletId , outletId ) ||
other . outletId == outletId ) &&
( identical ( other . userId , userId ) || other . userId == userId ) &&
( identical ( other . tableNumber , tableNumber ) ||
other . tableNumber == tableNumber ) &&
( identical ( other . orderType , orderType ) ||
other . orderType == orderType ) &&
( identical ( other . status , status ) || other . status == status ) &&
( identical ( other . subtotal , subtotal ) ||
other . subtotal == subtotal ) &&
( identical ( other . taxAmount , taxAmount ) ||
other . taxAmount == taxAmount ) &&
( identical ( other . discountAmount , discountAmount ) ||
other . discountAmount == discountAmount ) &&
( identical ( other . totalAmount , totalAmount ) ||
other . totalAmount == totalAmount ) &&
( identical ( other . totalCost , totalCost ) ||
other . totalCost == totalCost ) &&
( identical ( other . remainingAmount , remainingAmount ) ||
other . remainingAmount == remainingAmount ) &&
( identical ( other . paymentStatus , paymentStatus ) ||
other . paymentStatus == paymentStatus ) &&
( identical ( other . refundAmount , refundAmount ) ||
other . refundAmount == refundAmount ) &&
( identical ( other . isVoid , isVoid ) || other . isVoid == isVoid ) &&
( identical ( other . isRefund , isRefund ) ||
other . isRefund == isRefund ) &&
( identical ( other . notes , notes ) || other . notes == notes ) &&
const DeepCollectionEquality (). equals ( other . _metadata , _metadata ) &&
( identical ( other . createdAt , createdAt ) ||
other . createdAt == createdAt ) &&
( identical ( other . updatedAt , updatedAt ) ||
other . updatedAt == updatedAt ) &&
const DeepCollectionEquality (). equals (
other . _orderItems ,
_orderItems ,
) &&
const DeepCollectionEquality (). equals ( other . _payments , _payments ) &&
( identical ( other . totalPaid , totalPaid ) ||
other . totalPaid == totalPaid ) &&
( identical ( other . paymentCount , paymentCount ) ||
other . paymentCount == paymentCount ) &&
( identical ( other . splitType , splitType ) ||
other . splitType == splitType ));
}
@ override
int get hashCode => Object . hashAll ([
runtimeType ,
id ,
orderNumber ,
outletId ,
userId ,
tableNumber ,
orderType ,
status ,
subtotal ,
taxAmount ,
discountAmount ,
totalAmount ,
totalCost ,
remainingAmount ,
paymentStatus ,
refundAmount ,
isVoid ,
isRefund ,
notes ,
const DeepCollectionEquality (). hash ( _metadata ),
createdAt ,
updatedAt ,
const DeepCollectionEquality (). hash ( _orderItems ),
const DeepCollectionEquality (). hash ( _payments ),
totalPaid ,
paymentCount ,
splitType ,
]);
/// Create a copy of Order
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( 'vm:prefer-inline' )
_$$OrderImplCopyWith < _$OrderImpl > get copyWith =>
__$$OrderImplCopyWithImpl < _$OrderImpl > ( this , _$identity );
}
abstract class _Order implements Order {
const factory _Order ({
required final String id ,
required final String orderNumber ,
required final String outletId ,
required final String userId ,
required final String tableNumber ,
required final String orderType ,
required final String status ,
required final int subtotal ,
required final int taxAmount ,
required final int discountAmount ,
required final int totalAmount ,
required final int totalCost ,
required final int remainingAmount ,
required final String paymentStatus ,
required final int refundAmount ,
required final bool isVoid ,
required final bool isRefund ,
required final String notes ,
required final Map < String , dynamic > metadata ,
required final String createdAt ,
required final String updatedAt ,
required final List < OrderItem > orderItems ,
required final List < OrderPayment > payments ,
required final int totalPaid ,
required final int paymentCount ,
required final String splitType ,
}) = _$OrderImpl ;
@ override
String get id ;
@ override
String get orderNumber ;
@ override
String get outletId ;
@ override
String get userId ;
@ override
String get tableNumber ;
@ override
String get orderType ;
@ override
String get status ;
@ override
int get subtotal ;
@ override
int get taxAmount ;
@ override
int get discountAmount ;
@ override
int get totalAmount ;
@ override
int get totalCost ;
@ override
int get remainingAmount ;
@ override
String get paymentStatus ;
@ override
int get refundAmount ;
@ override
bool get isVoid ;
@ override
bool get isRefund ;
@ override
String get notes ;
@ override
Map < String , dynamic > get metadata ;
@ override
String get createdAt ;
@ override
String get updatedAt ;
@ override
List < OrderItem > get orderItems ;
@ override
List < OrderPayment > get payments ;
@ override
int get totalPaid ;
@ override
int get paymentCount ;
@ override
String get splitType ;
/// Create a copy of Order
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_$$OrderImplCopyWith < _$OrderImpl > get copyWith =>
throw _privateConstructorUsedError ;
}
/// @nodoc
mixin _$OrderItem {
String get id => throw _privateConstructorUsedError ;
String get orderId => throw _privateConstructorUsedError ;
String get productId => throw _privateConstructorUsedError ;
String get productName => throw _privateConstructorUsedError ;
int get quantity => throw _privateConstructorUsedError ;
int get price => throw _privateConstructorUsedError ;
int get subtotal => throw _privateConstructorUsedError ;
int get discountAmount => throw _privateConstructorUsedError ;
int get total => throw _privateConstructorUsedError ;
int get cost => throw _privateConstructorUsedError ;
Map < String , dynamic > get metadata => throw _privateConstructorUsedError ;
String get createdAt => throw _privateConstructorUsedError ;
String get updatedAt => throw _privateConstructorUsedError ;
/// Create a copy of OrderItem
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$OrderItemCopyWith < OrderItem > get copyWith =>
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $OrderItemCopyWith < $Res > {
factory $OrderItemCopyWith ( OrderItem value , $Res Function ( OrderItem ) then ) =
_$OrderItemCopyWithImpl < $Res , OrderItem > ;
@ useResult
$Res call ({
String id ,
String orderId ,
String productId ,
String productName ,
int quantity ,
int price ,
int subtotal ,
int discountAmount ,
int total ,
int cost ,
Map < String , dynamic > metadata ,
String createdAt ,
String updatedAt ,
});
}
/// @nodoc
class _ $OrderItemCopyWithImpl < $Res , $Val extends OrderItem >
implements $OrderItemCopyWith < $Res > {
_$OrderItemCopyWithImpl ( this . _value , this . _then );
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of OrderItem
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({
Object ? id = null ,
Object ? orderId = null ,
Object ? productId = null ,
Object ? productName = null ,
Object ? quantity = null ,
Object ? price = null ,
Object ? subtotal = null ,
Object ? discountAmount = null ,
Object ? total = null ,
Object ? cost = null ,
Object ? metadata = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
}) {
return _then (
_value . copyWith (
id: null == id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as String ,
orderId: null == orderId
? _value . orderId
: orderId // ignore: cast_nullable_to_non_nullable
as String ,
productId: null == productId
? _value . productId
: productId // ignore: cast_nullable_to_non_nullable
as String ,
productName: null == productName
? _value . productName
: productName // ignore: cast_nullable_to_non_nullable
as String ,
quantity: null == quantity
? _value . quantity
: quantity // ignore: cast_nullable_to_non_nullable
as int ,
price: null == price
? _value . price
: price // ignore: cast_nullable_to_non_nullable
as int ,
subtotal: null == subtotal
? _value . subtotal
: subtotal // ignore: cast_nullable_to_non_nullable
as int ,
discountAmount: null == discountAmount
? _value . discountAmount
: discountAmount // ignore: cast_nullable_to_non_nullable
as int ,
total: null == total
? _value . total
: total // ignore: cast_nullable_to_non_nullable
as int ,
cost: null == cost
? _value . cost
: cost // ignore: cast_nullable_to_non_nullable
as int ,
metadata: null == metadata
? _value . metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
createdAt: null == createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as String ,
updatedAt: null == updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as String ,
)
as $Val ,
);
}
}
/// @nodoc
abstract class _ $$OrderItemImplCopyWith < $Res >
implements $OrderItemCopyWith < $Res > {
factory _$$OrderItemImplCopyWith (
_$OrderItemImpl value ,
$Res Function ( _$OrderItemImpl ) then ,
) = __$$OrderItemImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ({
String id ,
String orderId ,
String productId ,
String productName ,
int quantity ,
int price ,
int subtotal ,
int discountAmount ,
int total ,
int cost ,
Map < String , dynamic > metadata ,
String createdAt ,
String updatedAt ,
});
}
/// @nodoc
class __ $$OrderItemImplCopyWithImpl < $Res >
extends _$OrderItemCopyWithImpl < $Res , _$OrderItemImpl >
implements _$$OrderItemImplCopyWith < $Res > {
__$$OrderItemImplCopyWithImpl (
_$OrderItemImpl _value ,
$Res Function ( _$OrderItemImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of OrderItem
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({
Object ? id = null ,
Object ? orderId = null ,
Object ? productId = null ,
Object ? productName = null ,
Object ? quantity = null ,
Object ? price = null ,
Object ? subtotal = null ,
Object ? discountAmount = null ,
Object ? total = null ,
Object ? cost = null ,
Object ? metadata = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
}) {
return _then (
_$OrderItemImpl (
id: null == id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as String ,
orderId: null == orderId
? _value . orderId
: orderId // ignore: cast_nullable_to_non_nullable
as String ,
productId: null == productId
? _value . productId
: productId // ignore: cast_nullable_to_non_nullable
as String ,
productName: null == productName
? _value . productName
: productName // ignore: cast_nullable_to_non_nullable
as String ,
quantity: null == quantity
? _value . quantity
: quantity // ignore: cast_nullable_to_non_nullable
as int ,
price: null == price
? _value . price
: price // ignore: cast_nullable_to_non_nullable
as int ,
subtotal: null == subtotal
? _value . subtotal
: subtotal // ignore: cast_nullable_to_non_nullable
as int ,
discountAmount: null == discountAmount
? _value . discountAmount
: discountAmount // ignore: cast_nullable_to_non_nullable
as int ,
total: null == total
? _value . total
: total // ignore: cast_nullable_to_non_nullable
as int ,
cost: null == cost
? _value . cost
: cost // ignore: cast_nullable_to_non_nullable
as int ,
metadata: null == metadata
? _value . _metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
createdAt: null == createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as String ,
updatedAt: null == updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as String ,
),
);
}
}
/// @nodoc
class _ $OrderItemImpl implements _OrderItem {
const _$OrderItemImpl ({
required this . id ,
required this . orderId ,
required this . productId ,
required this . productName ,
required this . quantity ,
required this . price ,
required this . subtotal ,
required this . discountAmount ,
required this . total ,
required this . cost ,
required final Map < String , dynamic > metadata ,
required this . createdAt ,
required this . updatedAt ,
}) : _metadata = metadata ;
@ override
final String id ;
@ override
final String orderId ;
@ override
final String productId ;
@ override
final String productName ;
@ override
final int quantity ;
@ override
final int price ;
@ override
final int subtotal ;
@ override
final int discountAmount ;
@ override
final int total ;
@ override
final int cost ;
final Map < String , dynamic > _metadata ;
@ override
Map < String , dynamic > get metadata {
if ( _metadata is EqualUnmodifiableMapView ) return _metadata ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _metadata );
}
@ override
final String createdAt ;
@ override
final String updatedAt ;
@ override
String toString () {
return 'OrderItem(id: $ id , orderId: $ orderId , productId: $ productId , productName: $ productName , quantity: $ quantity , price: $ price , subtotal: $ subtotal , discountAmount: $ discountAmount , total: $ total , cost: $ cost , metadata: $ metadata , createdAt: $ createdAt , updatedAt: $ updatedAt )' ;
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType &&
other is _$OrderItemImpl &&
( identical ( other . id , id ) || other . id == id ) &&
( identical ( other . orderId , orderId ) || other . orderId == orderId ) &&
( identical ( other . productId , productId ) ||
other . productId == productId ) &&
( identical ( other . productName , productName ) ||
other . productName == productName ) &&
( identical ( other . quantity , quantity ) ||
other . quantity == quantity ) &&
( identical ( other . price , price ) || other . price == price ) &&
( identical ( other . subtotal , subtotal ) ||
other . subtotal == subtotal ) &&
( identical ( other . discountAmount , discountAmount ) ||
other . discountAmount == discountAmount ) &&
( identical ( other . total , total ) || other . total == total ) &&
( identical ( other . cost , cost ) || other . cost == cost ) &&
const DeepCollectionEquality (). equals ( other . _metadata , _metadata ) &&
( identical ( other . createdAt , createdAt ) ||
other . createdAt == createdAt ) &&
( identical ( other . updatedAt , updatedAt ) ||
other . updatedAt == updatedAt ));
}
@ override
int get hashCode => Object . hash (
runtimeType ,
id ,
orderId ,
productId ,
productName ,
quantity ,
price ,
subtotal ,
discountAmount ,
total ,
cost ,
const DeepCollectionEquality (). hash ( _metadata ),
createdAt ,
updatedAt ,
);
/// Create a copy of OrderItem
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( 'vm:prefer-inline' )
_$$OrderItemImplCopyWith < _$OrderItemImpl > get copyWith =>
__$$OrderItemImplCopyWithImpl < _$OrderItemImpl > ( this , _$identity );
}
abstract class _OrderItem implements OrderItem {
const factory _OrderItem ({
required final String id ,
required final String orderId ,
required final String productId ,
required final String productName ,
required final int quantity ,
required final int price ,
required final int subtotal ,
required final int discountAmount ,
required final int total ,
required final int cost ,
required final Map < String , dynamic > metadata ,
required final String createdAt ,
required final String updatedAt ,
}) = _$OrderItemImpl ;
@ override
String get id ;
@ override
String get orderId ;
@ override
String get productId ;
@ override
String get productName ;
@ override
int get quantity ;
@ override
int get price ;
@ override
int get subtotal ;
@ override
int get discountAmount ;
@ override
int get total ;
@ override
int get cost ;
@ override
Map < String , dynamic > get metadata ;
@ override
String get createdAt ;
@ override
String get updatedAt ;
/// Create a copy of OrderItem
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_$$OrderItemImplCopyWith < _$OrderItemImpl > get copyWith =>
throw _privateConstructorUsedError ;
}
/// @nodoc
mixin _$OrderPayment {
String get id => throw _privateConstructorUsedError ;
String get orderId => throw _privateConstructorUsedError ;
String get paymentMethodId => throw _privateConstructorUsedError ;
String get paymentMethodName => throw _privateConstructorUsedError ;
String get paymentMethodType => throw _privateConstructorUsedError ;
int get amount => throw _privateConstructorUsedError ;
String get status => throw _privateConstructorUsedError ;
int get splitNumber => throw _privateConstructorUsedError ;
int get splitTotal => throw _privateConstructorUsedError ;
String get splitType => throw _privateConstructorUsedError ;
String get splitDescription => throw _privateConstructorUsedError ;
int get refundAmount => throw _privateConstructorUsedError ;
Map < String , dynamic > get metadata => throw _privateConstructorUsedError ;
String get createdAt => throw _privateConstructorUsedError ;
String get updatedAt => throw _privateConstructorUsedError ;
List < PaymentOrderItem > get paymentOrderItems =>
throw _privateConstructorUsedError ;
/// Create a copy of OrderPayment
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$OrderPaymentCopyWith < OrderPayment > get copyWith =>
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $OrderPaymentCopyWith < $Res > {
factory $OrderPaymentCopyWith (
OrderPayment value ,
$Res Function ( OrderPayment ) then ,
) = _$OrderPaymentCopyWithImpl < $Res , OrderPayment > ;
@ useResult
$Res call ({
String id ,
String orderId ,
String paymentMethodId ,
String paymentMethodName ,
String paymentMethodType ,
int amount ,
String status ,
int splitNumber ,
int splitTotal ,
String splitType ,
String splitDescription ,
int refundAmount ,
Map < String , dynamic > metadata ,
String createdAt ,
String updatedAt ,
List < PaymentOrderItem > paymentOrderItems ,
});
}
/// @nodoc
class _ $OrderPaymentCopyWithImpl < $Res , $Val extends OrderPayment >
implements $OrderPaymentCopyWith < $Res > {
_$OrderPaymentCopyWithImpl ( this . _value , this . _then );
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of OrderPayment
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({
Object ? id = null ,
Object ? orderId = null ,
Object ? paymentMethodId = null ,
Object ? paymentMethodName = null ,
Object ? paymentMethodType = null ,
Object ? amount = null ,
Object ? status = null ,
Object ? splitNumber = null ,
Object ? splitTotal = null ,
Object ? splitType = null ,
Object ? splitDescription = null ,
Object ? refundAmount = null ,
Object ? metadata = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
Object ? paymentOrderItems = null ,
}) {
return _then (
_value . copyWith (
id: null == id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as String ,
orderId: null == orderId
? _value . orderId
: orderId // ignore: cast_nullable_to_non_nullable
as String ,
paymentMethodId: null == paymentMethodId
? _value . paymentMethodId
: paymentMethodId // ignore: cast_nullable_to_non_nullable
as String ,
paymentMethodName: null == paymentMethodName
? _value . paymentMethodName
: paymentMethodName // ignore: cast_nullable_to_non_nullable
as String ,
paymentMethodType: null == paymentMethodType
? _value . paymentMethodType
: paymentMethodType // ignore: cast_nullable_to_non_nullable
as String ,
amount: null == amount
? _value . amount
: amount // ignore: cast_nullable_to_non_nullable
as int ,
status: null == status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as String ,
splitNumber: null == splitNumber
? _value . splitNumber
: splitNumber // ignore: cast_nullable_to_non_nullable
as int ,
splitTotal: null == splitTotal
? _value . splitTotal
: splitTotal // ignore: cast_nullable_to_non_nullable
as int ,
splitType: null == splitType
? _value . splitType
: splitType // ignore: cast_nullable_to_non_nullable
as String ,
splitDescription: null == splitDescription
? _value . splitDescription
: splitDescription // ignore: cast_nullable_to_non_nullable
as String ,
refundAmount: null == refundAmount
? _value . refundAmount
: refundAmount // ignore: cast_nullable_to_non_nullable
as int ,
metadata: null == metadata
? _value . metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
createdAt: null == createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as String ,
updatedAt: null == updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as String ,
paymentOrderItems: null == paymentOrderItems
? _value . paymentOrderItems
: paymentOrderItems // ignore: cast_nullable_to_non_nullable
as List < PaymentOrderItem > ,
)
as $Val ,
);
}
}
/// @nodoc
abstract class _ $$OrderPaymentImplCopyWith < $Res >
implements $OrderPaymentCopyWith < $Res > {
factory _$$OrderPaymentImplCopyWith (
_$OrderPaymentImpl value ,
$Res Function ( _$OrderPaymentImpl ) then ,
) = __$$OrderPaymentImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ({
String id ,
String orderId ,
String paymentMethodId ,
String paymentMethodName ,
String paymentMethodType ,
int amount ,
String status ,
int splitNumber ,
int splitTotal ,
String splitType ,
String splitDescription ,
int refundAmount ,
Map < String , dynamic > metadata ,
String createdAt ,
String updatedAt ,
List < PaymentOrderItem > paymentOrderItems ,
});
}
/// @nodoc
class __ $$OrderPaymentImplCopyWithImpl < $Res >
extends _$OrderPaymentCopyWithImpl < $Res , _$OrderPaymentImpl >
implements _$$OrderPaymentImplCopyWith < $Res > {
__$$OrderPaymentImplCopyWithImpl (
_$OrderPaymentImpl _value ,
$Res Function ( _$OrderPaymentImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of OrderPayment
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({
Object ? id = null ,
Object ? orderId = null ,
Object ? paymentMethodId = null ,
Object ? paymentMethodName = null ,
Object ? paymentMethodType = null ,
Object ? amount = null ,
Object ? status = null ,
Object ? splitNumber = null ,
Object ? splitTotal = null ,
Object ? splitType = null ,
Object ? splitDescription = null ,
Object ? refundAmount = null ,
Object ? metadata = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
Object ? paymentOrderItems = null ,
}) {
return _then (
_$OrderPaymentImpl (
id: null == id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as String ,
orderId: null == orderId
? _value . orderId
: orderId // ignore: cast_nullable_to_non_nullable
as String ,
paymentMethodId: null == paymentMethodId
? _value . paymentMethodId
: paymentMethodId // ignore: cast_nullable_to_non_nullable
as String ,
paymentMethodName: null == paymentMethodName
? _value . paymentMethodName
: paymentMethodName // ignore: cast_nullable_to_non_nullable
as String ,
paymentMethodType: null == paymentMethodType
? _value . paymentMethodType
: paymentMethodType // ignore: cast_nullable_to_non_nullable
as String ,
amount: null == amount
? _value . amount
: amount // ignore: cast_nullable_to_non_nullable
as int ,
status: null == status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as String ,
splitNumber: null == splitNumber
? _value . splitNumber
: splitNumber // ignore: cast_nullable_to_non_nullable
as int ,
splitTotal: null == splitTotal
? _value . splitTotal
: splitTotal // ignore: cast_nullable_to_non_nullable
as int ,
splitType: null == splitType
? _value . splitType
: splitType // ignore: cast_nullable_to_non_nullable
as String ,
splitDescription: null == splitDescription
? _value . splitDescription
: splitDescription // ignore: cast_nullable_to_non_nullable
as String ,
refundAmount: null == refundAmount
? _value . refundAmount
: refundAmount // ignore: cast_nullable_to_non_nullable
as int ,
metadata: null == metadata
? _value . _metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map < String , dynamic > ,
createdAt: null == createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as String ,
updatedAt: null == updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as String ,
paymentOrderItems: null == paymentOrderItems
? _value . _paymentOrderItems
: paymentOrderItems // ignore: cast_nullable_to_non_nullable
as List < PaymentOrderItem > ,
),
);
}
}
/// @nodoc
class _ $OrderPaymentImpl implements _OrderPayment {
const _$OrderPaymentImpl ({
required this . id ,
required this . orderId ,
required this . paymentMethodId ,
required this . paymentMethodName ,
required this . paymentMethodType ,
required this . amount ,
required this . status ,
required this . splitNumber ,
required this . splitTotal ,
required this . splitType ,
required this . splitDescription ,
required this . refundAmount ,
required final Map < String , dynamic > metadata ,
required this . createdAt ,
required this . updatedAt ,
required final List < PaymentOrderItem > paymentOrderItems ,
}) : _metadata = metadata ,
_paymentOrderItems = paymentOrderItems ;
@ override
final String id ;
@ override
final String orderId ;
@ override
final String paymentMethodId ;
@ override
final String paymentMethodName ;
@ override
final String paymentMethodType ;
@ override
final int amount ;
@ override
final String status ;
@ override
final int splitNumber ;
@ override
final int splitTotal ;
@ override
final String splitType ;
@ override
final String splitDescription ;
@ override
final int refundAmount ;
final Map < String , dynamic > _metadata ;
@ override
Map < String , dynamic > get metadata {
if ( _metadata is EqualUnmodifiableMapView ) return _metadata ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView ( _metadata );
}
@ override
final String createdAt ;
@ override
final String updatedAt ;
final List < PaymentOrderItem > _paymentOrderItems ;
@ override
List < PaymentOrderItem > get paymentOrderItems {
if ( _paymentOrderItems is EqualUnmodifiableListView )
return _paymentOrderItems ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _paymentOrderItems );
}
@ override
String toString () {
return 'OrderPayment(id: $ id , orderId: $ orderId , paymentMethodId: $ paymentMethodId , paymentMethodName: $ paymentMethodName , paymentMethodType: $ paymentMethodType , amount: $ amount , status: $ status , splitNumber: $ splitNumber , splitTotal: $ splitTotal , splitType: $ splitType , splitDescription: $ splitDescription , refundAmount: $ refundAmount , metadata: $ metadata , createdAt: $ createdAt , updatedAt: $ updatedAt , paymentOrderItems: $ paymentOrderItems )' ;
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType &&
other is _$OrderPaymentImpl &&
( identical ( other . id , id ) || other . id == id ) &&
( identical ( other . orderId , orderId ) || other . orderId == orderId ) &&
( identical ( other . paymentMethodId , paymentMethodId ) ||
other . paymentMethodId == paymentMethodId ) &&
( identical ( other . paymentMethodName , paymentMethodName ) ||
other . paymentMethodName == paymentMethodName ) &&
( identical ( other . paymentMethodType , paymentMethodType ) ||
other . paymentMethodType == paymentMethodType ) &&
( identical ( other . amount , amount ) || other . amount == amount ) &&
( identical ( other . status , status ) || other . status == status ) &&
( identical ( other . splitNumber , splitNumber ) ||
other . splitNumber == splitNumber ) &&
( identical ( other . splitTotal , splitTotal ) ||
other . splitTotal == splitTotal ) &&
( identical ( other . splitType , splitType ) ||
other . splitType == splitType ) &&
( identical ( other . splitDescription , splitDescription ) ||
other . splitDescription == splitDescription ) &&
( identical ( other . refundAmount , refundAmount ) ||
other . refundAmount == refundAmount ) &&
const DeepCollectionEquality (). equals ( other . _metadata , _metadata ) &&
( identical ( other . createdAt , createdAt ) ||
other . createdAt == createdAt ) &&
( identical ( other . updatedAt , updatedAt ) ||
other . updatedAt == updatedAt ) &&
const DeepCollectionEquality (). equals (
other . _paymentOrderItems ,
_paymentOrderItems ,
));
}
@ override
int get hashCode => Object . hash (
runtimeType ,
id ,
orderId ,
paymentMethodId ,
paymentMethodName ,
paymentMethodType ,
amount ,
status ,
splitNumber ,
splitTotal ,
splitType ,
splitDescription ,
refundAmount ,
const DeepCollectionEquality (). hash ( _metadata ),
createdAt ,
updatedAt ,
const DeepCollectionEquality (). hash ( _paymentOrderItems ),
);
/// Create a copy of OrderPayment
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( 'vm:prefer-inline' )
_$$OrderPaymentImplCopyWith < _$OrderPaymentImpl > get copyWith =>
__$$OrderPaymentImplCopyWithImpl < _$OrderPaymentImpl > ( this , _$identity );
}
abstract class _OrderPayment implements OrderPayment {
const factory _OrderPayment ({
required final String id ,
required final String orderId ,
required final String paymentMethodId ,
required final String paymentMethodName ,
required final String paymentMethodType ,
required final int amount ,
required final String status ,
required final int splitNumber ,
required final int splitTotal ,
required final String splitType ,
required final String splitDescription ,
required final int refundAmount ,
required final Map < String , dynamic > metadata ,
required final String createdAt ,
required final String updatedAt ,
required final List < PaymentOrderItem > paymentOrderItems ,
}) = _$OrderPaymentImpl ;
@ override
String get id ;
@ override
String get orderId ;
@ override
String get paymentMethodId ;
@ override
String get paymentMethodName ;
@ override
String get paymentMethodType ;
@ override
int get amount ;
@ override
String get status ;
@ override
int get splitNumber ;
@ override
int get splitTotal ;
@ override
String get splitType ;
@ override
String get splitDescription ;
@ override
int get refundAmount ;
@ override
Map < String , dynamic > get metadata ;
@ override
String get createdAt ;
@ override
String get updatedAt ;
@ override
List < PaymentOrderItem > get paymentOrderItems ;
/// Create a copy of OrderPayment
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_$$OrderPaymentImplCopyWith < _$OrderPaymentImpl > get copyWith =>
throw _privateConstructorUsedError ;
}
/// @nodoc
mixin _$PaymentOrderItem {
String get id => throw _privateConstructorUsedError ;
String get orderPaymentId => throw _privateConstructorUsedError ;
String get orderItemId => throw _privateConstructorUsedError ;
int get amount => throw _privateConstructorUsedError ;
int get refundAmount => throw _privateConstructorUsedError ;
String get createdAt => throw _privateConstructorUsedError ;
String get updatedAt => throw _privateConstructorUsedError ;
/// Create a copy of PaymentOrderItem
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$PaymentOrderItemCopyWith < PaymentOrderItem > get copyWith =>
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PaymentOrderItemCopyWith < $Res > {
factory $PaymentOrderItemCopyWith (
PaymentOrderItem value ,
$Res Function ( PaymentOrderItem ) then ,
) = _$PaymentOrderItemCopyWithImpl < $Res , PaymentOrderItem > ;
@ useResult
$Res call ({
String id ,
String orderPaymentId ,
String orderItemId ,
int amount ,
int refundAmount ,
String createdAt ,
String updatedAt ,
});
}
/// @nodoc
class _ $PaymentOrderItemCopyWithImpl < $Res , $Val extends PaymentOrderItem >
implements $PaymentOrderItemCopyWith < $Res > {
_$PaymentOrderItemCopyWithImpl ( this . _value , this . _then );
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of PaymentOrderItem
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({
Object ? id = null ,
Object ? orderPaymentId = null ,
Object ? orderItemId = null ,
Object ? amount = null ,
Object ? refundAmount = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
}) {
return _then (
_value . copyWith (
id: null == id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as String ,
orderPaymentId: null == orderPaymentId
? _value . orderPaymentId
: orderPaymentId // ignore: cast_nullable_to_non_nullable
as String ,
orderItemId: null == orderItemId
? _value . orderItemId
: orderItemId // ignore: cast_nullable_to_non_nullable
as String ,
amount: null == amount
? _value . amount
: amount // ignore: cast_nullable_to_non_nullable
as int ,
refundAmount: null == refundAmount
? _value . refundAmount
: refundAmount // ignore: cast_nullable_to_non_nullable
as int ,
createdAt: null == createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as String ,
updatedAt: null == updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as String ,
)
as $Val ,
);
}
}
/// @nodoc
abstract class _ $$PaymentOrderItemImplCopyWith < $Res >
implements $PaymentOrderItemCopyWith < $Res > {
factory _$$PaymentOrderItemImplCopyWith (
_$PaymentOrderItemImpl value ,
$Res Function ( _$PaymentOrderItemImpl ) then ,
) = __$$PaymentOrderItemImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ({
String id ,
String orderPaymentId ,
String orderItemId ,
int amount ,
int refundAmount ,
String createdAt ,
String updatedAt ,
});
}
/// @nodoc
class __ $$PaymentOrderItemImplCopyWithImpl < $Res >
extends _$PaymentOrderItemCopyWithImpl < $Res , _$PaymentOrderItemImpl >
implements _$$PaymentOrderItemImplCopyWith < $Res > {
__$$PaymentOrderItemImplCopyWithImpl (
_$PaymentOrderItemImpl _value ,
$Res Function ( _$PaymentOrderItemImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of PaymentOrderItem
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({
Object ? id = null ,
Object ? orderPaymentId = null ,
Object ? orderItemId = null ,
Object ? amount = null ,
Object ? refundAmount = null ,
Object ? createdAt = null ,
Object ? updatedAt = null ,
}) {
return _then (
_$PaymentOrderItemImpl (
id: null == id
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as String ,
orderPaymentId: null == orderPaymentId
? _value . orderPaymentId
: orderPaymentId // ignore: cast_nullable_to_non_nullable
as String ,
orderItemId: null == orderItemId
? _value . orderItemId
: orderItemId // ignore: cast_nullable_to_non_nullable
as String ,
amount: null == amount
? _value . amount
: amount // ignore: cast_nullable_to_non_nullable
as int ,
refundAmount: null == refundAmount
? _value . refundAmount
: refundAmount // ignore: cast_nullable_to_non_nullable
as int ,
createdAt: null == createdAt
? _value . createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as String ,
updatedAt: null == updatedAt
? _value . updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as String ,
),
);
}
}
/// @nodoc
class _ $PaymentOrderItemImpl implements _PaymentOrderItem {
const _$PaymentOrderItemImpl ({
required this . id ,
required this . orderPaymentId ,
required this . orderItemId ,
required this . amount ,
required this . refundAmount ,
required this . createdAt ,
required this . updatedAt ,
});
@ override
final String id ;
@ override
final String orderPaymentId ;
@ override
final String orderItemId ;
@ override
final int amount ;
@ override
final int refundAmount ;
@ override
final String createdAt ;
@ override
final String updatedAt ;
@ override
String toString () {
return 'PaymentOrderItem(id: $ id , orderPaymentId: $ orderPaymentId , orderItemId: $ orderItemId , amount: $ amount , refundAmount: $ refundAmount , createdAt: $ createdAt , updatedAt: $ updatedAt )' ;
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType &&
other is _$PaymentOrderItemImpl &&
( identical ( other . id , id ) || other . id == id ) &&
( identical ( other . orderPaymentId , orderPaymentId ) ||
other . orderPaymentId == orderPaymentId ) &&
( identical ( other . orderItemId , orderItemId ) ||
other . orderItemId == orderItemId ) &&
( identical ( other . amount , amount ) || other . amount == amount ) &&
( identical ( other . refundAmount , refundAmount ) ||
other . refundAmount == refundAmount ) &&
( identical ( other . createdAt , createdAt ) ||
other . createdAt == createdAt ) &&
( identical ( other . updatedAt , updatedAt ) ||
other . updatedAt == updatedAt ));
}
@ override
int get hashCode => Object . hash (
runtimeType ,
id ,
orderPaymentId ,
orderItemId ,
amount ,
refundAmount ,
createdAt ,
updatedAt ,
);
/// Create a copy of PaymentOrderItem
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( 'vm:prefer-inline' )
_$$PaymentOrderItemImplCopyWith < _$PaymentOrderItemImpl > get copyWith =>
__$$PaymentOrderItemImplCopyWithImpl < _$PaymentOrderItemImpl > (
this ,
_$identity ,
);
}
abstract class _PaymentOrderItem implements PaymentOrderItem {
const factory _PaymentOrderItem ({
required final String id ,
required final String orderPaymentId ,
required final String orderItemId ,
required final int amount ,
required final int refundAmount ,
required final String createdAt ,
required final String updatedAt ,
}) = _$PaymentOrderItemImpl ;
@ override
String get id ;
@ override
String get orderPaymentId ;
@ override
String get orderItemId ;
@ override
int get amount ;
@ override
int get refundAmount ;
@ override
String get createdAt ;
@ override
String get updatedAt ;
/// Create a copy of PaymentOrderItem
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_$$PaymentOrderItemImplCopyWith < _$PaymentOrderItemImpl > get copyWith =>
throw _privateConstructorUsedError ;
}
2026-10-20 18:22:02 +07:00
/// @nodoc
mixin _$OrderTotal {
int get count => throw _privateConstructorUsedError ;
int get amount => throw _privateConstructorUsedError ;
/// Create a copy of OrderTotal
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$OrderTotalCopyWith < OrderTotal > get copyWith =>
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $OrderTotalCopyWith < $Res > {
factory $OrderTotalCopyWith (
OrderTotal value ,
$Res Function ( OrderTotal ) then ,
) = _$OrderTotalCopyWithImpl < $Res , OrderTotal > ;
@ useResult
$Res call ({ int count , int amount });
}
/// @nodoc
class _ $OrderTotalCopyWithImpl < $Res , $Val extends OrderTotal >
implements $OrderTotalCopyWith < $Res > {
_$OrderTotalCopyWithImpl ( this . _value , this . _then );
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of OrderTotal
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({ Object ? count = null , Object ? amount = null }) {
return _then (
_value . copyWith (
count: null == count
? _value . count
: count // ignore: cast_nullable_to_non_nullable
as int ,
amount: null == amount
? _value . amount
: amount // ignore: cast_nullable_to_non_nullable
as int ,
)
as $Val ,
);
}
}
/// @nodoc
abstract class _ $$OrderTotalImplCopyWith < $Res >
implements $OrderTotalCopyWith < $Res > {
factory _$$OrderTotalImplCopyWith (
_$OrderTotalImpl value ,
$Res Function ( _$OrderTotalImpl ) then ,
) = __$$OrderTotalImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ({ int count , int amount });
}
/// @nodoc
class __ $$OrderTotalImplCopyWithImpl < $Res >
extends _$OrderTotalCopyWithImpl < $Res , _$OrderTotalImpl >
implements _$$OrderTotalImplCopyWith < $Res > {
__$$OrderTotalImplCopyWithImpl (
_$OrderTotalImpl _value ,
$Res Function ( _$OrderTotalImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of OrderTotal
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({ Object ? count = null , Object ? amount = null }) {
return _then (
_$OrderTotalImpl (
count: null == count
? _value . count
: count // ignore: cast_nullable_to_non_nullable
as int ,
amount: null == amount
? _value . amount
: amount // ignore: cast_nullable_to_non_nullable
as int ,
),
);
}
}
/// @nodoc
class _ $OrderTotalImpl implements _OrderTotal {
const _$OrderTotalImpl ({ required this . count , required this . amount });
@ override
final int count ;
@ override
final int amount ;
@ override
String toString () {
return 'OrderTotal(count: $ count , amount: $ amount )' ;
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType &&
other is _$OrderTotalImpl &&
( identical ( other . count , count ) || other . count == count ) &&
( identical ( other . amount , amount ) || other . amount == amount ));
}
@ override
int get hashCode => Object . hash ( runtimeType , count , amount );
/// Create a copy of OrderTotal
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( 'vm:prefer-inline' )
_$$OrderTotalImplCopyWith < _$OrderTotalImpl > get copyWith =>
__$$OrderTotalImplCopyWithImpl < _$OrderTotalImpl > ( this , _$identity );
}
abstract class _OrderTotal implements OrderTotal {
const factory _OrderTotal ({
required final int count ,
required final int amount ,
}) = _$OrderTotalImpl ;
@ override
int get count ;
@ override
int get amount ;
/// Create a copy of OrderTotal
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_$$OrderTotalImplCopyWith < _$OrderTotalImpl > get copyWith =>
throw _privateConstructorUsedError ;
}
2025-08-18 14:24:15 +07:00
/// @nodoc
mixin _$OrderFailure {
@ optionalTypeArgs
TResult when < TResult extends Object ?> ({
required TResult Function ( ApiFailure failure ) serverError ,
required TResult Function () unexpectedError ,
required TResult Function () empty ,
required TResult Function ( String erroMessage ) dynamicErrorMessage ,
}) => throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ?> ({
TResult ? Function ( ApiFailure failure ) ? serverError ,
TResult ? Function () ? unexpectedError ,
TResult ? Function () ? empty ,
TResult ? Function ( String erroMessage ) ? dynamicErrorMessage ,
}) => throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ?> ({
TResult Function ( ApiFailure failure ) ? serverError ,
TResult Function () ? unexpectedError ,
TResult Function () ? empty ,
TResult Function ( String erroMessage ) ? dynamicErrorMessage ,
required TResult orElse (),
}) => throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ?> ({
required TResult Function ( _ServerError value ) serverError ,
required TResult Function ( _UnexpectedError value ) unexpectedError ,
required TResult Function ( _Empty value ) empty ,
required TResult Function ( _DynamicErrorMessage value ) dynamicErrorMessage ,
}) => throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ?> ({
TResult ? Function ( _ServerError value ) ? serverError ,
TResult ? Function ( _UnexpectedError value ) ? unexpectedError ,
TResult ? Function ( _Empty value ) ? empty ,
TResult ? Function ( _DynamicErrorMessage value ) ? dynamicErrorMessage ,
}) => throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ?> ({
TResult Function ( _ServerError value ) ? serverError ,
TResult Function ( _UnexpectedError value ) ? unexpectedError ,
TResult Function ( _Empty value ) ? empty ,
TResult Function ( _DynamicErrorMessage value ) ? dynamicErrorMessage ,
required TResult orElse (),
}) => throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $OrderFailureCopyWith < $Res > {
factory $OrderFailureCopyWith (
OrderFailure value ,
$Res Function ( OrderFailure ) then ,
) = _$OrderFailureCopyWithImpl < $Res , OrderFailure > ;
}
/// @nodoc
class _ $OrderFailureCopyWithImpl < $Res , $Val extends OrderFailure >
implements $OrderFailureCopyWith < $Res > {
_$OrderFailureCopyWithImpl ( this . _value , this . _then );
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of OrderFailure
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
abstract class _ $$ServerErrorImplCopyWith < $Res > {
factory _$$ServerErrorImplCopyWith (
_$ServerErrorImpl value ,
$Res Function ( _$ServerErrorImpl ) then ,
) = __$$ServerErrorImplCopyWithImpl < $Res > ;
@ useResult
$Res call ({ ApiFailure failure });
$ApiFailureCopyWith < $Res > get failure ;
}
/// @nodoc
class __ $$ServerErrorImplCopyWithImpl < $Res >
extends _$OrderFailureCopyWithImpl < $Res , _$ServerErrorImpl >
implements _$$ServerErrorImplCopyWith < $Res > {
__$$ServerErrorImplCopyWithImpl (
_$ServerErrorImpl _value ,
$Res Function ( _$ServerErrorImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of OrderFailure
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({ Object ? failure = null }) {
return _then (
_$ServerErrorImpl (
null == failure
? _value . failure
: failure // ignore: cast_nullable_to_non_nullable
as ApiFailure ,
),
);
}
/// Create a copy of OrderFailure
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( 'vm:prefer-inline' )
$ApiFailureCopyWith < $Res > get failure {
return $ApiFailureCopyWith < $Res > ( _value . failure , ( value ) {
return _then ( _value . copyWith ( failure: value ));
});
}
}
/// @nodoc
class _ $ServerErrorImpl implements _ServerError {
const _$ServerErrorImpl ( this . failure );
@ override
final ApiFailure failure ;
@ override
String toString () {
return 'OrderFailure.serverError(failure: $ failure )' ;
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType &&
other is _$ServerErrorImpl &&
( identical ( other . failure , failure ) || other . failure == failure ));
}
@ override
int get hashCode => Object . hash ( runtimeType , failure );
/// Create a copy of OrderFailure
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( 'vm:prefer-inline' )
_$$ServerErrorImplCopyWith < _$ServerErrorImpl > get copyWith =>
__$$ServerErrorImplCopyWithImpl < _$ServerErrorImpl > ( this , _$identity );
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ?> ({
required TResult Function ( ApiFailure failure ) serverError ,
required TResult Function () unexpectedError ,
required TResult Function () empty ,
required TResult Function ( String erroMessage ) dynamicErrorMessage ,
}) {
return serverError ( failure );
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ?> ({
TResult ? Function ( ApiFailure failure ) ? serverError ,
TResult ? Function () ? unexpectedError ,
TResult ? Function () ? empty ,
TResult ? Function ( String erroMessage ) ? dynamicErrorMessage ,
}) {
return serverError ? . call ( failure );
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ?> ({
TResult Function ( ApiFailure failure ) ? serverError ,
TResult Function () ? unexpectedError ,
TResult Function () ? empty ,
TResult Function ( String erroMessage ) ? dynamicErrorMessage ,
required TResult orElse (),
}) {
if ( serverError != null ) {
return serverError ( failure );
}
return orElse ();
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ?> ({
required TResult Function ( _ServerError value ) serverError ,
required TResult Function ( _UnexpectedError value ) unexpectedError ,
required TResult Function ( _Empty value ) empty ,
required TResult Function ( _DynamicErrorMessage value ) dynamicErrorMessage ,
}) {
return serverError ( this );
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ?> ({
TResult ? Function ( _ServerError value ) ? serverError ,
TResult ? Function ( _UnexpectedError value ) ? unexpectedError ,
TResult ? Function ( _Empty value ) ? empty ,
TResult ? Function ( _DynamicErrorMessage value ) ? dynamicErrorMessage ,
}) {
return serverError ? . call ( this );
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ?> ({
TResult Function ( _ServerError value ) ? serverError ,
TResult Function ( _UnexpectedError value ) ? unexpectedError ,
TResult Function ( _Empty value ) ? empty ,
TResult Function ( _DynamicErrorMessage value ) ? dynamicErrorMessage ,
required TResult orElse (),
}) {
if ( serverError != null ) {
return serverError ( this );
}
return orElse ();
}
}
abstract class _ServerError implements OrderFailure {
const factory _ServerError ( final ApiFailure failure ) = _$ServerErrorImpl ;
ApiFailure get failure ;
/// Create a copy of OrderFailure
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
_$$ServerErrorImplCopyWith < _$ServerErrorImpl > get copyWith =>
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class _ $$UnexpectedErrorImplCopyWith < $Res > {
factory _$$UnexpectedErrorImplCopyWith (
_$UnexpectedErrorImpl value ,
$Res Function ( _$UnexpectedErrorImpl ) then ,
) = __$$UnexpectedErrorImplCopyWithImpl < $Res > ;
}
/// @nodoc
class __ $$UnexpectedErrorImplCopyWithImpl < $Res >
extends _$OrderFailureCopyWithImpl < $Res , _$UnexpectedErrorImpl >
implements _$$UnexpectedErrorImplCopyWith < $Res > {
__$$UnexpectedErrorImplCopyWithImpl (
_$UnexpectedErrorImpl _value ,
$Res Function ( _$UnexpectedErrorImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of OrderFailure
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
class _ $UnexpectedErrorImpl implements _UnexpectedError {
const _$UnexpectedErrorImpl ();
@ override
String toString () {
return 'OrderFailure.unexpectedError()' ;
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType && other is _$UnexpectedErrorImpl );
}
@ override
int get hashCode => runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ?> ({
required TResult Function ( ApiFailure failure ) serverError ,
required TResult Function () unexpectedError ,
required TResult Function () empty ,
required TResult Function ( String erroMessage ) dynamicErrorMessage ,
}) {
return unexpectedError ();
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ?> ({
TResult ? Function ( ApiFailure failure ) ? serverError ,
TResult ? Function () ? unexpectedError ,
TResult ? Function () ? empty ,
TResult ? Function ( String erroMessage ) ? dynamicErrorMessage ,
}) {
return unexpectedError ? . call ();
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ?> ({
TResult Function ( ApiFailure failure ) ? serverError ,
TResult Function () ? unexpectedError ,
TResult Function () ? empty ,
TResult Function ( String erroMessage ) ? dynamicErrorMessage ,
required TResult orElse (),
}) {
if ( unexpectedError != null ) {
return unexpectedError ();
}
return orElse ();
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ?> ({
required TResult Function ( _ServerError value ) serverError ,
required TResult Function ( _UnexpectedError value ) unexpectedError ,
required TResult Function ( _Empty value ) empty ,
required TResult Function ( _DynamicErrorMessage value ) dynamicErrorMessage ,
}) {
return unexpectedError ( this );
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ?> ({
TResult ? Function ( _ServerError value ) ? serverError ,
TResult ? Function ( _UnexpectedError value ) ? unexpectedError ,
TResult ? Function ( _Empty value ) ? empty ,
TResult ? Function ( _DynamicErrorMessage value ) ? dynamicErrorMessage ,
}) {
return unexpectedError ? . call ( this );
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ?> ({
TResult Function ( _ServerError value ) ? serverError ,
TResult Function ( _UnexpectedError value ) ? unexpectedError ,
TResult Function ( _Empty value ) ? empty ,
TResult Function ( _DynamicErrorMessage value ) ? dynamicErrorMessage ,
required TResult orElse (),
}) {
if ( unexpectedError != null ) {
return unexpectedError ( this );
}
return orElse ();
}
}
abstract class _UnexpectedError implements OrderFailure {
const factory _UnexpectedError () = _$UnexpectedErrorImpl ;
}
/// @nodoc
abstract class _ $$EmptyImplCopyWith < $Res > {
factory _$$EmptyImplCopyWith (
_$EmptyImpl value ,
$Res Function ( _$EmptyImpl ) then ,
) = __$$EmptyImplCopyWithImpl < $Res > ;
}
/// @nodoc
class __ $$EmptyImplCopyWithImpl < $Res >
extends _$OrderFailureCopyWithImpl < $Res , _$EmptyImpl >
implements _$$EmptyImplCopyWith < $Res > {
__$$EmptyImplCopyWithImpl (
_$EmptyImpl _value ,
$Res Function ( _$EmptyImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of OrderFailure
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
class _ $EmptyImpl implements _Empty {
const _$EmptyImpl ();
@ override
String toString () {
return 'OrderFailure.empty()' ;
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType && other is _$EmptyImpl );
}
@ override
int get hashCode => runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ?> ({
required TResult Function ( ApiFailure failure ) serverError ,
required TResult Function () unexpectedError ,
required TResult Function () empty ,
required TResult Function ( String erroMessage ) dynamicErrorMessage ,
}) {
return empty ();
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ?> ({
TResult ? Function ( ApiFailure failure ) ? serverError ,
TResult ? Function () ? unexpectedError ,
TResult ? Function () ? empty ,
TResult ? Function ( String erroMessage ) ? dynamicErrorMessage ,
}) {
return empty ? . call ();
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ?> ({
TResult Function ( ApiFailure failure ) ? serverError ,
TResult Function () ? unexpectedError ,
TResult Function () ? empty ,
TResult Function ( String erroMessage ) ? dynamicErrorMessage ,
required TResult orElse (),
}) {
if ( empty != null ) {
return empty ();
}
return orElse ();
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ?> ({
required TResult Function ( _ServerError value ) serverError ,
required TResult Function ( _UnexpectedError value ) unexpectedError ,
required TResult Function ( _Empty value ) empty ,
required TResult Function ( _DynamicErrorMessage value ) dynamicErrorMessage ,
}) {
return empty ( this );
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ?> ({
TResult ? Function ( _ServerError value ) ? serverError ,
TResult ? Function ( _UnexpectedError value ) ? unexpectedError ,
TResult ? Function ( _Empty value ) ? empty ,
TResult ? Function ( _DynamicErrorMessage value ) ? dynamicErrorMessage ,
}) {
return empty ? . call ( this );
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ?> ({
TResult Function ( _ServerError value ) ? serverError ,
TResult Function ( _UnexpectedError value ) ? unexpectedError ,
TResult Function ( _Empty value ) ? empty ,
TResult Function ( _DynamicErrorMessage value ) ? dynamicErrorMessage ,
required TResult orElse (),
}) {
if ( empty != null ) {
return empty ( this );
}
return orElse ();
}
}
abstract class _Empty implements OrderFailure {
const factory _Empty () = _$EmptyImpl ;
}
/// @nodoc
abstract class _ $$DynamicErrorMessageImplCopyWith < $Res > {
factory _$$DynamicErrorMessageImplCopyWith (
_$DynamicErrorMessageImpl value ,
$Res Function ( _$DynamicErrorMessageImpl ) then ,
) = __$$DynamicErrorMessageImplCopyWithImpl < $Res > ;
@ useResult
$Res call ({ String erroMessage });
}
/// @nodoc
class __ $$DynamicErrorMessageImplCopyWithImpl < $Res >
extends _$OrderFailureCopyWithImpl < $Res , _$DynamicErrorMessageImpl >
implements _$$DynamicErrorMessageImplCopyWith < $Res > {
__$$DynamicErrorMessageImplCopyWithImpl (
_$DynamicErrorMessageImpl _value ,
$Res Function ( _$DynamicErrorMessageImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of OrderFailure
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({ Object ? erroMessage = null }) {
return _then (
_$DynamicErrorMessageImpl (
null == erroMessage
? _value . erroMessage
: erroMessage // ignore: cast_nullable_to_non_nullable
as String ,
),
);
}
}
/// @nodoc
class _ $DynamicErrorMessageImpl implements _DynamicErrorMessage {
const _$DynamicErrorMessageImpl ( this . erroMessage );
@ override
final String erroMessage ;
@ override
String toString () {
return 'OrderFailure.dynamicErrorMessage(erroMessage: $ erroMessage )' ;
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType &&
other is _$DynamicErrorMessageImpl &&
( identical ( other . erroMessage , erroMessage ) ||
other . erroMessage == erroMessage ));
}
@ override
int get hashCode => Object . hash ( runtimeType , erroMessage );
/// Create a copy of OrderFailure
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( 'vm:prefer-inline' )
_$$DynamicErrorMessageImplCopyWith < _$DynamicErrorMessageImpl > get copyWith =>
__$$DynamicErrorMessageImplCopyWithImpl < _$DynamicErrorMessageImpl > (
this ,
_$identity ,
);
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ?> ({
required TResult Function ( ApiFailure failure ) serverError ,
required TResult Function () unexpectedError ,
required TResult Function () empty ,
required TResult Function ( String erroMessage ) dynamicErrorMessage ,
}) {
return dynamicErrorMessage ( erroMessage );
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ?> ({
TResult ? Function ( ApiFailure failure ) ? serverError ,
TResult ? Function () ? unexpectedError ,
TResult ? Function () ? empty ,
TResult ? Function ( String erroMessage ) ? dynamicErrorMessage ,
}) {
return dynamicErrorMessage ? . call ( erroMessage );
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ?> ({
TResult Function ( ApiFailure failure ) ? serverError ,
TResult Function () ? unexpectedError ,
TResult Function () ? empty ,
TResult Function ( String erroMessage ) ? dynamicErrorMessage ,
required TResult orElse (),
}) {
if ( dynamicErrorMessage != null ) {
return dynamicErrorMessage ( erroMessage );
}
return orElse ();
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ?> ({
required TResult Function ( _ServerError value ) serverError ,
required TResult Function ( _UnexpectedError value ) unexpectedError ,
required TResult Function ( _Empty value ) empty ,
required TResult Function ( _DynamicErrorMessage value ) dynamicErrorMessage ,
}) {
return dynamicErrorMessage ( this );
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ?> ({
TResult ? Function ( _ServerError value ) ? serverError ,
TResult ? Function ( _UnexpectedError value ) ? unexpectedError ,
TResult ? Function ( _Empty value ) ? empty ,
TResult ? Function ( _DynamicErrorMessage value ) ? dynamicErrorMessage ,
}) {
return dynamicErrorMessage ? . call ( this );
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ?> ({
TResult Function ( _ServerError value ) ? serverError ,
TResult Function ( _UnexpectedError value ) ? unexpectedError ,
TResult Function ( _Empty value ) ? empty ,
TResult Function ( _DynamicErrorMessage value ) ? dynamicErrorMessage ,
required TResult orElse (),
}) {
if ( dynamicErrorMessage != null ) {
return dynamicErrorMessage ( this );
}
return orElse ();
}
}
abstract class _DynamicErrorMessage implements OrderFailure {
const factory _DynamicErrorMessage ( final String erroMessage ) =
_$DynamicErrorMessageImpl ;
String get erroMessage ;
/// Create a copy of OrderFailure
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
_$$DynamicErrorMessageImplCopyWith < _$DynamicErrorMessageImpl > get copyWith =>
throw _privateConstructorUsedError ;
}