void
This commit is contained in:
@@ -136,4 +136,23 @@ class OrderItemDto with _$OrderItemDto {
|
||||
printerType: printerType ?? '',
|
||||
paidQuantity: paidQuantity ?? 0,
|
||||
);
|
||||
|
||||
factory OrderItemDto.fromDomain(OrderItem orderItem) => OrderItemDto(
|
||||
id: orderItem.id,
|
||||
orderId: orderItem.orderId,
|
||||
productId: orderItem.productId,
|
||||
productName: orderItem.productName,
|
||||
productVariantId: orderItem.productVariantId,
|
||||
productVariantName: orderItem.productVariantName,
|
||||
quantity: orderItem.quantity,
|
||||
unitPrice: orderItem.unitPrice,
|
||||
totalPrice: orderItem.totalPrice,
|
||||
modifiers: orderItem.modifiers,
|
||||
notes: orderItem.notes,
|
||||
status: orderItem.status,
|
||||
createdAt: orderItem.createdAt.toIso8601String(),
|
||||
updatedAt: orderItem.updatedAt.toIso8601String(),
|
||||
printerType: orderItem.printerType,
|
||||
paidQuantity: orderItem.paidQuantity,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user