|
|
@ -15,14 +15,14 @@ class ShoppingCart { |
|
|
|
String storeName; |
|
|
|
String storeName; |
|
|
|
int tableId; |
|
|
|
int tableId; |
|
|
|
|
|
|
|
|
|
|
|
static ShoppingCart fromMap(Map<String, dynamic> map) { |
|
|
|
static ShoppingCart fromJon(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
|
ShoppingCart shoppingCartBean = ShoppingCart(); |
|
|
|
ShoppingCart shoppingCartBean = ShoppingCart(); |
|
|
|
shoppingCartBean.cartSum = map['cartSum']; |
|
|
|
shoppingCartBean.cartSum = map['cartSum']; |
|
|
|
shoppingCartBean.numberOfPeople = map['numberOfPeople']; |
|
|
|
shoppingCartBean.numberOfPeople = map['numberOfPeople']; |
|
|
|
shoppingCartBean.selected = map['selected']; |
|
|
|
shoppingCartBean.selected = map['selected']; |
|
|
|
shoppingCartBean.shoppingCartSkuItemList = List()..addAll( |
|
|
|
shoppingCartBean.shoppingCartSkuItemList = List()..addAll( |
|
|
|
(map['shoppingCartSkuItemList'] as List ?? []).map((o) => ShoppingCartSkuItemListBean.fromMap(o)) |
|
|
|
(map['shoppingCartSkuItemList'] as List ?? []).map((o) => ShoppingCartSkuItemListBean.fromJon(o)) |
|
|
|
); |
|
|
|
); |
|
|
|
shoppingCartBean.storeId = map['storeId']; |
|
|
|
shoppingCartBean.storeId = map['storeId']; |
|
|
|
shoppingCartBean.storeName = map['storeName']; |
|
|
|
shoppingCartBean.storeName = map['storeName']; |
|
|
@ -72,7 +72,7 @@ class ShoppingCartSkuItemListBean { |
|
|
|
int storeId; |
|
|
|
int storeId; |
|
|
|
int tableId; |
|
|
|
int tableId; |
|
|
|
|
|
|
|
|
|
|
|
static ShoppingCartSkuItemListBean fromMap(Map<String, dynamic> map) { |
|
|
|
static ShoppingCartSkuItemListBean fromJon(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
|
ShoppingCartSkuItemListBean shoppingCartSkuItemListBean = ShoppingCartSkuItemListBean(); |
|
|
|
ShoppingCartSkuItemListBean shoppingCartSkuItemListBean = ShoppingCartSkuItemListBean(); |
|
|
|
shoppingCartSkuItemListBean.buyNum = map['buyNum']; |
|
|
|
shoppingCartSkuItemListBean.buyNum = map['buyNum']; |
|
|
@ -80,7 +80,7 @@ class ShoppingCartSkuItemListBean { |
|
|
|
shoppingCartSkuItemListBean.groupId = map['groupId']; |
|
|
|
shoppingCartSkuItemListBean.groupId = map['groupId']; |
|
|
|
shoppingCartSkuItemListBean.id = map['id']; |
|
|
|
shoppingCartSkuItemListBean.id = map['id']; |
|
|
|
shoppingCartSkuItemListBean.platterList = List()..addAll( |
|
|
|
shoppingCartSkuItemListBean.platterList = List()..addAll( |
|
|
|
(map['platterList'] as List ?? []).map((o) => PlatterListBean.fromMap(o)) |
|
|
|
(map['platterList'] as List ?? []).map((o) => PlatterListBean.fromJon(o)) |
|
|
|
); |
|
|
|
); |
|
|
|
shoppingCartSkuItemListBean.productId = map['productId']; |
|
|
|
shoppingCartSkuItemListBean.productId = map['productId']; |
|
|
|
shoppingCartSkuItemListBean.productName = map['productName']; |
|
|
|
shoppingCartSkuItemListBean.productName = map['productName']; |
|
|
@ -125,7 +125,7 @@ class PlatterListBean { |
|
|
|
bool required; |
|
|
|
bool required; |
|
|
|
int skuId; |
|
|
|
int skuId; |
|
|
|
|
|
|
|
|
|
|
|
static PlatterListBean fromMap(Map<String, dynamic> map) { |
|
|
|
static PlatterListBean fromJon(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
|
PlatterListBean platterListBean = PlatterListBean(); |
|
|
|
PlatterListBean platterListBean = PlatterListBean(); |
|
|
|
platterListBean.deleted = map['deleted']; |
|
|
|
platterListBean.deleted = map['deleted']; |
|
|
|