|
|
|
@@ -1876,6 +1876,552 @@ abstract class _PaymentOrder implements PaymentOrder {
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$OrderRequest {
|
|
|
|
|
String get outletId => throw _privateConstructorUsedError;
|
|
|
|
|
String get customerId => throw _privateConstructorUsedError;
|
|
|
|
|
String get tableNumber => throw _privateConstructorUsedError;
|
|
|
|
|
String get tableId => throw _privateConstructorUsedError;
|
|
|
|
|
String get orderType => throw _privateConstructorUsedError;
|
|
|
|
|
String get notes => throw _privateConstructorUsedError;
|
|
|
|
|
List<OrderItemRequest> get orderItems => throw _privateConstructorUsedError;
|
|
|
|
|
String get customerName => throw _privateConstructorUsedError;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderRequest
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
$OrderRequestCopyWith<OrderRequest> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class $OrderRequestCopyWith<$Res> {
|
|
|
|
|
factory $OrderRequestCopyWith(
|
|
|
|
|
OrderRequest value,
|
|
|
|
|
$Res Function(OrderRequest) then,
|
|
|
|
|
) = _$OrderRequestCopyWithImpl<$Res, OrderRequest>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
String outletId,
|
|
|
|
|
String customerId,
|
|
|
|
|
String tableNumber,
|
|
|
|
|
String tableId,
|
|
|
|
|
String orderType,
|
|
|
|
|
String notes,
|
|
|
|
|
List<OrderItemRequest> orderItems,
|
|
|
|
|
String customerName,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$OrderRequestCopyWithImpl<$Res, $Val extends OrderRequest>
|
|
|
|
|
implements $OrderRequestCopyWith<$Res> {
|
|
|
|
|
_$OrderRequestCopyWithImpl(this._value, this._then);
|
|
|
|
|
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Val _value;
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Res Function($Val) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderRequest
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? outletId = null,
|
|
|
|
|
Object? customerId = null,
|
|
|
|
|
Object? tableNumber = null,
|
|
|
|
|
Object? tableId = null,
|
|
|
|
|
Object? orderType = null,
|
|
|
|
|
Object? notes = null,
|
|
|
|
|
Object? orderItems = null,
|
|
|
|
|
Object? customerName = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_value.copyWith(
|
|
|
|
|
outletId: null == outletId
|
|
|
|
|
? _value.outletId
|
|
|
|
|
: outletId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
customerId: null == customerId
|
|
|
|
|
? _value.customerId
|
|
|
|
|
: customerId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
tableNumber: null == tableNumber
|
|
|
|
|
? _value.tableNumber
|
|
|
|
|
: tableNumber // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
tableId: null == tableId
|
|
|
|
|
? _value.tableId
|
|
|
|
|
: tableId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
orderType: null == orderType
|
|
|
|
|
? _value.orderType
|
|
|
|
|
: orderType // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
notes: null == notes
|
|
|
|
|
? _value.notes
|
|
|
|
|
: notes // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
orderItems: null == orderItems
|
|
|
|
|
? _value.orderItems
|
|
|
|
|
: orderItems // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as List<OrderItemRequest>,
|
|
|
|
|
customerName: null == customerName
|
|
|
|
|
? _value.customerName
|
|
|
|
|
: customerName // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
)
|
|
|
|
|
as $Val,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$OrderRequestImplCopyWith<$Res>
|
|
|
|
|
implements $OrderRequestCopyWith<$Res> {
|
|
|
|
|
factory _$$OrderRequestImplCopyWith(
|
|
|
|
|
_$OrderRequestImpl value,
|
|
|
|
|
$Res Function(_$OrderRequestImpl) then,
|
|
|
|
|
) = __$$OrderRequestImplCopyWithImpl<$Res>;
|
|
|
|
|
@override
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
String outletId,
|
|
|
|
|
String customerId,
|
|
|
|
|
String tableNumber,
|
|
|
|
|
String tableId,
|
|
|
|
|
String orderType,
|
|
|
|
|
String notes,
|
|
|
|
|
List<OrderItemRequest> orderItems,
|
|
|
|
|
String customerName,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$OrderRequestImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$OrderRequestCopyWithImpl<$Res, _$OrderRequestImpl>
|
|
|
|
|
implements _$$OrderRequestImplCopyWith<$Res> {
|
|
|
|
|
__$$OrderRequestImplCopyWithImpl(
|
|
|
|
|
_$OrderRequestImpl _value,
|
|
|
|
|
$Res Function(_$OrderRequestImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderRequest
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? outletId = null,
|
|
|
|
|
Object? customerId = null,
|
|
|
|
|
Object? tableNumber = null,
|
|
|
|
|
Object? tableId = null,
|
|
|
|
|
Object? orderType = null,
|
|
|
|
|
Object? notes = null,
|
|
|
|
|
Object? orderItems = null,
|
|
|
|
|
Object? customerName = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$OrderRequestImpl(
|
|
|
|
|
outletId: null == outletId
|
|
|
|
|
? _value.outletId
|
|
|
|
|
: outletId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
customerId: null == customerId
|
|
|
|
|
? _value.customerId
|
|
|
|
|
: customerId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
tableNumber: null == tableNumber
|
|
|
|
|
? _value.tableNumber
|
|
|
|
|
: tableNumber // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
tableId: null == tableId
|
|
|
|
|
? _value.tableId
|
|
|
|
|
: tableId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
orderType: null == orderType
|
|
|
|
|
? _value.orderType
|
|
|
|
|
: orderType // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
notes: null == notes
|
|
|
|
|
? _value.notes
|
|
|
|
|
: notes // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
orderItems: null == orderItems
|
|
|
|
|
? _value._orderItems
|
|
|
|
|
: orderItems // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as List<OrderItemRequest>,
|
|
|
|
|
customerName: null == customerName
|
|
|
|
|
? _value.customerName
|
|
|
|
|
: customerName // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$OrderRequestImpl implements _OrderRequest {
|
|
|
|
|
const _$OrderRequestImpl({
|
|
|
|
|
required this.outletId,
|
|
|
|
|
required this.customerId,
|
|
|
|
|
required this.tableNumber,
|
|
|
|
|
required this.tableId,
|
|
|
|
|
required this.orderType,
|
|
|
|
|
required this.notes,
|
|
|
|
|
required final List<OrderItemRequest> orderItems,
|
|
|
|
|
required this.customerName,
|
|
|
|
|
}) : _orderItems = orderItems;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String outletId;
|
|
|
|
|
@override
|
|
|
|
|
final String customerId;
|
|
|
|
|
@override
|
|
|
|
|
final String tableNumber;
|
|
|
|
|
@override
|
|
|
|
|
final String tableId;
|
|
|
|
|
@override
|
|
|
|
|
final String orderType;
|
|
|
|
|
@override
|
|
|
|
|
final String notes;
|
|
|
|
|
final List<OrderItemRequest> _orderItems;
|
|
|
|
|
@override
|
|
|
|
|
List<OrderItemRequest> get orderItems {
|
|
|
|
|
if (_orderItems is EqualUnmodifiableListView) return _orderItems;
|
|
|
|
|
// ignore: implicit_dynamic_type
|
|
|
|
|
return EqualUnmodifiableListView(_orderItems);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String customerName;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'OrderRequest(outletId: $outletId, customerId: $customerId, tableNumber: $tableNumber, tableId: $tableId, orderType: $orderType, notes: $notes, orderItems: $orderItems, customerName: $customerName)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$OrderRequestImpl &&
|
|
|
|
|
(identical(other.outletId, outletId) ||
|
|
|
|
|
other.outletId == outletId) &&
|
|
|
|
|
(identical(other.customerId, customerId) ||
|
|
|
|
|
other.customerId == customerId) &&
|
|
|
|
|
(identical(other.tableNumber, tableNumber) ||
|
|
|
|
|
other.tableNumber == tableNumber) &&
|
|
|
|
|
(identical(other.tableId, tableId) || other.tableId == tableId) &&
|
|
|
|
|
(identical(other.orderType, orderType) ||
|
|
|
|
|
other.orderType == orderType) &&
|
|
|
|
|
(identical(other.notes, notes) || other.notes == notes) &&
|
|
|
|
|
const DeepCollectionEquality().equals(
|
|
|
|
|
other._orderItems,
|
|
|
|
|
_orderItems,
|
|
|
|
|
) &&
|
|
|
|
|
(identical(other.customerName, customerName) ||
|
|
|
|
|
other.customerName == customerName));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(
|
|
|
|
|
runtimeType,
|
|
|
|
|
outletId,
|
|
|
|
|
customerId,
|
|
|
|
|
tableNumber,
|
|
|
|
|
tableId,
|
|
|
|
|
orderType,
|
|
|
|
|
notes,
|
|
|
|
|
const DeepCollectionEquality().hash(_orderItems),
|
|
|
|
|
customerName,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderRequest
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$OrderRequestImplCopyWith<_$OrderRequestImpl> get copyWith =>
|
|
|
|
|
__$$OrderRequestImplCopyWithImpl<_$OrderRequestImpl>(this, _$identity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _OrderRequest implements OrderRequest {
|
|
|
|
|
const factory _OrderRequest({
|
|
|
|
|
required final String outletId,
|
|
|
|
|
required final String customerId,
|
|
|
|
|
required final String tableNumber,
|
|
|
|
|
required final String tableId,
|
|
|
|
|
required final String orderType,
|
|
|
|
|
required final String notes,
|
|
|
|
|
required final List<OrderItemRequest> orderItems,
|
|
|
|
|
required final String customerName,
|
|
|
|
|
}) = _$OrderRequestImpl;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String get outletId;
|
|
|
|
|
@override
|
|
|
|
|
String get customerId;
|
|
|
|
|
@override
|
|
|
|
|
String get tableNumber;
|
|
|
|
|
@override
|
|
|
|
|
String get tableId;
|
|
|
|
|
@override
|
|
|
|
|
String get orderType;
|
|
|
|
|
@override
|
|
|
|
|
String get notes;
|
|
|
|
|
@override
|
|
|
|
|
List<OrderItemRequest> get orderItems;
|
|
|
|
|
@override
|
|
|
|
|
String get customerName;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderRequest
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$OrderRequestImplCopyWith<_$OrderRequestImpl> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$OrderItemRequest {
|
|
|
|
|
String get productId => throw _privateConstructorUsedError;
|
|
|
|
|
String get productVariantId => throw _privateConstructorUsedError;
|
|
|
|
|
int get quantity => throw _privateConstructorUsedError;
|
|
|
|
|
int get unitPrice => throw _privateConstructorUsedError;
|
|
|
|
|
String get notes => throw _privateConstructorUsedError;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderItemRequest
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
$OrderItemRequestCopyWith<OrderItemRequest> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class $OrderItemRequestCopyWith<$Res> {
|
|
|
|
|
factory $OrderItemRequestCopyWith(
|
|
|
|
|
OrderItemRequest value,
|
|
|
|
|
$Res Function(OrderItemRequest) then,
|
|
|
|
|
) = _$OrderItemRequestCopyWithImpl<$Res, OrderItemRequest>;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
String productId,
|
|
|
|
|
String productVariantId,
|
|
|
|
|
int quantity,
|
|
|
|
|
int unitPrice,
|
|
|
|
|
String notes,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$OrderItemRequestCopyWithImpl<$Res, $Val extends OrderItemRequest>
|
|
|
|
|
implements $OrderItemRequestCopyWith<$Res> {
|
|
|
|
|
_$OrderItemRequestCopyWithImpl(this._value, this._then);
|
|
|
|
|
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Val _value;
|
|
|
|
|
// ignore: unused_field
|
|
|
|
|
final $Res Function($Val) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderItemRequest
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? productId = null,
|
|
|
|
|
Object? productVariantId = null,
|
|
|
|
|
Object? quantity = null,
|
|
|
|
|
Object? unitPrice = null,
|
|
|
|
|
Object? notes = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_value.copyWith(
|
|
|
|
|
productId: null == productId
|
|
|
|
|
? _value.productId
|
|
|
|
|
: productId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
productVariantId: null == productVariantId
|
|
|
|
|
? _value.productVariantId
|
|
|
|
|
: productVariantId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
quantity: null == quantity
|
|
|
|
|
? _value.quantity
|
|
|
|
|
: quantity // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
unitPrice: null == unitPrice
|
|
|
|
|
? _value.unitPrice
|
|
|
|
|
: unitPrice // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
notes: null == notes
|
|
|
|
|
? _value.notes
|
|
|
|
|
: notes // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
)
|
|
|
|
|
as $Val,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$OrderItemRequestImplCopyWith<$Res>
|
|
|
|
|
implements $OrderItemRequestCopyWith<$Res> {
|
|
|
|
|
factory _$$OrderItemRequestImplCopyWith(
|
|
|
|
|
_$OrderItemRequestImpl value,
|
|
|
|
|
$Res Function(_$OrderItemRequestImpl) then,
|
|
|
|
|
) = __$$OrderItemRequestImplCopyWithImpl<$Res>;
|
|
|
|
|
@override
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
String productId,
|
|
|
|
|
String productVariantId,
|
|
|
|
|
int quantity,
|
|
|
|
|
int unitPrice,
|
|
|
|
|
String notes,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$OrderItemRequestImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$OrderItemRequestCopyWithImpl<$Res, _$OrderItemRequestImpl>
|
|
|
|
|
implements _$$OrderItemRequestImplCopyWith<$Res> {
|
|
|
|
|
__$$OrderItemRequestImplCopyWithImpl(
|
|
|
|
|
_$OrderItemRequestImpl _value,
|
|
|
|
|
$Res Function(_$OrderItemRequestImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderItemRequest
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
@override
|
|
|
|
|
$Res call({
|
|
|
|
|
Object? productId = null,
|
|
|
|
|
Object? productVariantId = null,
|
|
|
|
|
Object? quantity = null,
|
|
|
|
|
Object? unitPrice = null,
|
|
|
|
|
Object? notes = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$OrderItemRequestImpl(
|
|
|
|
|
productId: null == productId
|
|
|
|
|
? _value.productId
|
|
|
|
|
: productId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
productVariantId: null == productVariantId
|
|
|
|
|
? _value.productVariantId
|
|
|
|
|
: productVariantId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
quantity: null == quantity
|
|
|
|
|
? _value.quantity
|
|
|
|
|
: quantity // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
unitPrice: null == unitPrice
|
|
|
|
|
? _value.unitPrice
|
|
|
|
|
: unitPrice // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
notes: null == notes
|
|
|
|
|
? _value.notes
|
|
|
|
|
: notes // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$OrderItemRequestImpl implements _OrderItemRequest {
|
|
|
|
|
const _$OrderItemRequestImpl({
|
|
|
|
|
required this.productId,
|
|
|
|
|
required this.productVariantId,
|
|
|
|
|
required this.quantity,
|
|
|
|
|
required this.unitPrice,
|
|
|
|
|
required this.notes,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
final String productId;
|
|
|
|
|
@override
|
|
|
|
|
final String productVariantId;
|
|
|
|
|
@override
|
|
|
|
|
final int quantity;
|
|
|
|
|
@override
|
|
|
|
|
final int unitPrice;
|
|
|
|
|
@override
|
|
|
|
|
final String notes;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'OrderItemRequest(productId: $productId, productVariantId: $productVariantId, quantity: $quantity, unitPrice: $unitPrice, notes: $notes)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType &&
|
|
|
|
|
other is _$OrderItemRequestImpl &&
|
|
|
|
|
(identical(other.productId, productId) ||
|
|
|
|
|
other.productId == productId) &&
|
|
|
|
|
(identical(other.productVariantId, productVariantId) ||
|
|
|
|
|
other.productVariantId == productVariantId) &&
|
|
|
|
|
(identical(other.quantity, quantity) ||
|
|
|
|
|
other.quantity == quantity) &&
|
|
|
|
|
(identical(other.unitPrice, unitPrice) ||
|
|
|
|
|
other.unitPrice == unitPrice) &&
|
|
|
|
|
(identical(other.notes, notes) || other.notes == notes));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(
|
|
|
|
|
runtimeType,
|
|
|
|
|
productId,
|
|
|
|
|
productVariantId,
|
|
|
|
|
quantity,
|
|
|
|
|
unitPrice,
|
|
|
|
|
notes,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderItemRequest
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@override
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
_$$OrderItemRequestImplCopyWith<_$OrderItemRequestImpl> get copyWith =>
|
|
|
|
|
__$$OrderItemRequestImplCopyWithImpl<_$OrderItemRequestImpl>(
|
|
|
|
|
this,
|
|
|
|
|
_$identity,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _OrderItemRequest implements OrderItemRequest {
|
|
|
|
|
const factory _OrderItemRequest({
|
|
|
|
|
required final String productId,
|
|
|
|
|
required final String productVariantId,
|
|
|
|
|
required final int quantity,
|
|
|
|
|
required final int unitPrice,
|
|
|
|
|
required final String notes,
|
|
|
|
|
}) = _$OrderItemRequestImpl;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String get productId;
|
|
|
|
|
@override
|
|
|
|
|
String get productVariantId;
|
|
|
|
|
@override
|
|
|
|
|
int get quantity;
|
|
|
|
|
@override
|
|
|
|
|
int get unitPrice;
|
|
|
|
|
@override
|
|
|
|
|
String get notes;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderItemRequest
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
_$$OrderItemRequestImplCopyWith<_$OrderItemRequestImpl> get copyWith =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$OrderFailure {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|