feat: update save

This commit is contained in:
efrilm
2025-08-04 00:50:10 +07:00
parent 6302ea0282
commit 571ba9802e
13 changed files with 320 additions and 208 deletions
@@ -4,6 +4,7 @@ class OrderRequestModel {
final String? outletId;
final String? userId;
final String? tableNumber;
final String? tableId;
final String? orderType;
final String? notes;
final List<OrderItemRequest>? orderItems;
@@ -13,6 +14,7 @@ class OrderRequestModel {
this.outletId,
this.userId,
this.tableNumber,
this.tableId,
this.orderType,
this.notes,
this.orderItems,
@@ -29,6 +31,7 @@ class OrderRequestModel {
outletId: json["outlet_id"],
userId: json["user_id"],
tableNumber: json["table_number"],
tableId: json["table_id"],
orderType: json["order_type"],
notes: json["notes"],
orderItems: json["order_items"] == null
@@ -42,6 +45,7 @@ class OrderRequestModel {
"outlet_id": outletId,
"user_id": userId,
"table_number": tableNumber,
"table_id": tableId,
"order_type": orderType,
"notes": notes,
"order_items": orderItems == null