import 'package:huixiang/data/coupon_list.dart'; import 'package:huixiang/data/promotion_info.dart'; import 'package:huixiang/data/set_meal_data.dart'; import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/shopping_cart.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/shopping_cart.g.dart'; @JsonSerializable() class ShoppingCart { int? cartSum = 0; int? selectDiscount = 0; int? numberOfPeople = 0; int? selected = 0; List? shoppingCartSkuItemList = []; int? storeId = 0; String? storeName = ''; String? tableId = ''; List? promotionInfoList; List? couponList; ShoppingCart(); factory ShoppingCart.fromJson(Map json) => $ShoppingCartFromJson(json); Map toJson() => $ShoppingCartToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class SkuItemList { int? buyNum = 0; String? createTime = ''; int? groupId = 0; int? id = 0; List? platterList = []; List? setMealDataList = []; String? productId = ''; String? productName = ''; int? selected = 0; String? skuImg = ''; String? skuName = ''; String? skuPrice = ''; int? skuStock = 0; int? storeId = 0; int? tableId = 0; SkuItemList(); factory SkuItemList.fromJson(Map json) => $SkuItemListFromJson(json); Map toJson() => $SkuItemListToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class PlatterList { bool? deleted = false; int? id = 0; int? productId = 0; bool? required = false; int? skuId = 0; PlatterList(); factory PlatterList.fromJson(Map json) => $PlatterListFromJson(json); Map toJson() => $PlatterListToJson(this); @override String toString() { return jsonEncode(this); } }