|
|
@ -18,8 +18,8 @@ class ShoppingCart { |
|
|
|
int selectDiscount; |
|
|
|
int selectDiscount; |
|
|
|
String storeName; |
|
|
|
String storeName; |
|
|
|
String tableId; |
|
|
|
String tableId; |
|
|
|
List<PromotionInfoListBean> promotionInfoList; |
|
|
|
List<PromotionInfoListBeans> promotionInfoList; |
|
|
|
List<CouponListBean> couponList; |
|
|
|
List<CouponListBeans> couponList; |
|
|
|
|
|
|
|
|
|
|
|
static ShoppingCart fromJson(Map<String, dynamic> map) { |
|
|
|
static ShoppingCart fromJson(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
@ -35,10 +35,10 @@ class ShoppingCart { |
|
|
|
shoppingCartBean.selectDiscount = map['selectDiscount']; |
|
|
|
shoppingCartBean.selectDiscount = map['selectDiscount']; |
|
|
|
shoppingCartBean.tableId = map['tableId']; |
|
|
|
shoppingCartBean.tableId = map['tableId']; |
|
|
|
shoppingCartBean.promotionInfoList = List()..addAll( |
|
|
|
shoppingCartBean.promotionInfoList = List()..addAll( |
|
|
|
(map['promotionInfoList'] as List ?? []).map((o) => PromotionInfoListBean.fromJson(o)) |
|
|
|
(map['promotionInfoList'] as List ?? []).map((o) => PromotionInfoListBeans.fromJson(o)) |
|
|
|
); |
|
|
|
); |
|
|
|
shoppingCartBean.couponList = List()..addAll( |
|
|
|
shoppingCartBean.couponList = List()..addAll( |
|
|
|
(map['couponList'] as List ?? []).map((o) => CouponListBean.fromJson(o)) |
|
|
|
(map['couponList'] as List ?? []).map((o) => CouponListBeans.fromJson(o)) |
|
|
|
); |
|
|
|
); |
|
|
|
return shoppingCartBean; |
|
|
|
return shoppingCartBean; |
|
|
|
} |
|
|
|
} |
|
|
@ -308,7 +308,7 @@ class ProductInfoList { |
|
|
|
/// isMaxPromotion : true |
|
|
|
/// isMaxPromotion : true |
|
|
|
/// promotionProuctList : null |
|
|
|
/// promotionProuctList : null |
|
|
|
|
|
|
|
|
|
|
|
class PromotionInfoListBean { |
|
|
|
class PromotionInfoListBeans { |
|
|
|
String id; |
|
|
|
String id; |
|
|
|
String createTime; |
|
|
|
String createTime; |
|
|
|
String createUser; |
|
|
|
String createUser; |
|
|
@ -339,43 +339,43 @@ class PromotionInfoListBean { |
|
|
|
bool isMaxPromotion; |
|
|
|
bool isMaxPromotion; |
|
|
|
dynamic promotionProuctList; |
|
|
|
dynamic promotionProuctList; |
|
|
|
|
|
|
|
|
|
|
|
static PromotionInfoListBean fromJson(Map<String, dynamic> map) { |
|
|
|
static PromotionInfoListBeans fromJson(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
|
PromotionInfoListBean promotionInfoListBean = PromotionInfoListBean(); |
|
|
|
PromotionInfoListBeans promotionInfoListBeans = PromotionInfoListBeans(); |
|
|
|
promotionInfoListBean.id = map['id']; |
|
|
|
promotionInfoListBeans.id = map['id']; |
|
|
|
promotionInfoListBean.createTime = map['createTime']; |
|
|
|
promotionInfoListBeans.createTime = map['createTime']; |
|
|
|
promotionInfoListBean.createUser = map['createUser']; |
|
|
|
promotionInfoListBeans.createUser = map['createUser']; |
|
|
|
promotionInfoListBean.updateTime = map['updateTime']; |
|
|
|
promotionInfoListBeans.updateTime = map['updateTime']; |
|
|
|
promotionInfoListBean.updateUser = map['updateUser']; |
|
|
|
promotionInfoListBeans.updateUser = map['updateUser']; |
|
|
|
promotionInfoListBean.storeId = map['storeId']; |
|
|
|
promotionInfoListBeans.storeId = map['storeId']; |
|
|
|
promotionInfoListBean.name = map['name']; |
|
|
|
promotionInfoListBeans.name = map['name']; |
|
|
|
promotionInfoListBean.image = map['image']; |
|
|
|
promotionInfoListBeans.image = map['image']; |
|
|
|
promotionInfoListBean.description = map['description']; |
|
|
|
promotionInfoListBeans.description = map['description']; |
|
|
|
promotionInfoListBean.status = map['status']; |
|
|
|
promotionInfoListBeans.status = map['status']; |
|
|
|
promotionInfoListBean.applyStartTime = map['applyStartTime']; |
|
|
|
promotionInfoListBeans.applyStartTime = map['applyStartTime']; |
|
|
|
promotionInfoListBean.applyEndTime = map['applyEndTime']; |
|
|
|
promotionInfoListBeans.applyEndTime = map['applyEndTime']; |
|
|
|
promotionInfoListBean.activityStartTime = map['activityStartTime']; |
|
|
|
promotionInfoListBeans.activityStartTime = map['activityStartTime']; |
|
|
|
promotionInfoListBean.activityEndTime = map['activityEndTime']; |
|
|
|
promotionInfoListBeans.activityEndTime = map['activityEndTime']; |
|
|
|
promotionInfoListBean.doStartTime = map['doStartTime']; |
|
|
|
promotionInfoListBeans.doStartTime = map['doStartTime']; |
|
|
|
promotionInfoListBean.doEndTime = map['doEndTime']; |
|
|
|
promotionInfoListBeans.doEndTime = map['doEndTime']; |
|
|
|
promotionInfoListBean.isNeedSecurityDeposit = map['isNeedSecurityDeposit']; |
|
|
|
promotionInfoListBeans.isNeedSecurityDeposit = map['isNeedSecurityDeposit']; |
|
|
|
promotionInfoListBean.securityDeposit = map['securityDeposit']; |
|
|
|
promotionInfoListBeans.securityDeposit = map['securityDeposit']; |
|
|
|
promotionInfoListBean.tag = map['tag']; |
|
|
|
promotionInfoListBeans.tag = map['tag']; |
|
|
|
promotionInfoListBean.promotionType = map['promotionType']; |
|
|
|
promotionInfoListBeans.promotionType = map['promotionType']; |
|
|
|
promotionInfoListBean.promotionPlan = map['promotionPlan']; |
|
|
|
promotionInfoListBeans.promotionPlan = map['promotionPlan']; |
|
|
|
promotionInfoListBean.promotionDetail = List()..addAll( |
|
|
|
promotionInfoListBeans.promotionDetail = List()..addAll( |
|
|
|
(map['promotionDetail'] as List ?? []).map((o) => PromotionDetailBean.fromJson(o)) |
|
|
|
(map['promotionDetail'] as List ?? []).map((o) => PromotionDetailBean.fromJson(o)) |
|
|
|
); |
|
|
|
); |
|
|
|
promotionInfoListBean.channels = List()..addAll( |
|
|
|
promotionInfoListBeans.channels = List()..addAll( |
|
|
|
(map['channels'] as List ?? []).map((o) => o.toString()) |
|
|
|
(map['channels'] as List ?? []).map((o) => o.toString()) |
|
|
|
); |
|
|
|
); |
|
|
|
promotionInfoListBean.isVip = map['isVip']; |
|
|
|
promotionInfoListBeans.isVip = map['isVip']; |
|
|
|
promotionInfoListBean.isDelete = map['isDelete']; |
|
|
|
promotionInfoListBeans.isDelete = map['isDelete']; |
|
|
|
promotionInfoListBean.tenantCode = map['tenantCode']; |
|
|
|
promotionInfoListBeans.tenantCode = map['tenantCode']; |
|
|
|
promotionInfoListBean.canPartake = map['canPartake']; |
|
|
|
promotionInfoListBeans.canPartake = map['canPartake']; |
|
|
|
promotionInfoListBean.isMaxPromotion = map['isMaxPromotion']; |
|
|
|
promotionInfoListBeans.isMaxPromotion = map['isMaxPromotion']; |
|
|
|
promotionInfoListBean.promotionProuctList = map['promotionProuctList']; |
|
|
|
promotionInfoListBeans.promotionProuctList = map['promotionProuctList']; |
|
|
|
return promotionInfoListBean; |
|
|
|
return promotionInfoListBeans; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map toJson() => { |
|
|
|
Map toJson() => { |
|
|
@ -437,7 +437,7 @@ class PromotionInfoListBean { |
|
|
|
/// isMaxCoupon:true |
|
|
|
/// isMaxCoupon:true |
|
|
|
/// productList : null |
|
|
|
/// productList : null |
|
|
|
|
|
|
|
|
|
|
|
class CouponListBean { |
|
|
|
class CouponListBeans { |
|
|
|
String id; |
|
|
|
String id; |
|
|
|
String storeId; |
|
|
|
String storeId; |
|
|
|
int bizType; |
|
|
|
int bizType; |
|
|
@ -466,35 +466,35 @@ class CouponListBean { |
|
|
|
bool isEx; |
|
|
|
bool isEx; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static CouponListBean fromJson(Map<String, dynamic> map) { |
|
|
|
static CouponListBeans fromJson(Map<String, dynamic> map) { |
|
|
|
if (map == null) return null; |
|
|
|
if (map == null) return null; |
|
|
|
CouponListBean couponListBean = CouponListBean(); |
|
|
|
CouponListBeans couponListBeans = CouponListBeans(); |
|
|
|
couponListBean.id = map['id']; |
|
|
|
couponListBeans.id = map['id']; |
|
|
|
couponListBean.storeId = map['storeId']; |
|
|
|
couponListBeans.storeId = map['storeId']; |
|
|
|
couponListBean.bizType = map['bizType']; |
|
|
|
couponListBeans.bizType = map['bizType']; |
|
|
|
couponListBean.fullAmount = map['fullAmount']; |
|
|
|
couponListBeans.fullAmount = map['fullAmount']; |
|
|
|
couponListBean.discountAmount = map['discountAmount']; |
|
|
|
couponListBeans.discountAmount = map['discountAmount']; |
|
|
|
couponListBean.fullNumber = map['fullNumber']; |
|
|
|
couponListBeans.fullNumber = map['fullNumber']; |
|
|
|
couponListBean.discountPercent = map['discountPercent']; |
|
|
|
couponListBeans.discountPercent = map['discountPercent']; |
|
|
|
couponListBean.bizId = map['bizId']; |
|
|
|
couponListBeans.bizId = map['bizId']; |
|
|
|
couponListBean.publishStartTime = map['publishStartTime']; |
|
|
|
couponListBeans.publishStartTime = map['publishStartTime']; |
|
|
|
couponListBean.publishEndTime = map['publishEndTime']; |
|
|
|
couponListBeans.publishEndTime = map['publishEndTime']; |
|
|
|
couponListBean.useStartTime = map['useStartTime']; |
|
|
|
couponListBeans.useStartTime = map['useStartTime']; |
|
|
|
couponListBean.useEndTime = map['useEndTime']; |
|
|
|
couponListBeans.useEndTime = map['useEndTime']; |
|
|
|
couponListBean.promotionId = map['promotionId']; |
|
|
|
couponListBeans.promotionId = map['promotionId']; |
|
|
|
couponListBean.mid = map['mid']; |
|
|
|
couponListBeans.mid = map['mid']; |
|
|
|
couponListBean.couponId = map['couponId']; |
|
|
|
couponListBeans.couponId = map['couponId']; |
|
|
|
couponListBean.receiveTime = map['receiveTime']; |
|
|
|
couponListBeans.receiveTime = map['receiveTime']; |
|
|
|
couponListBean.useTime = map['useTime']; |
|
|
|
couponListBeans.useTime = map['useTime']; |
|
|
|
couponListBean.status = map['status']; |
|
|
|
couponListBeans.status = map['status']; |
|
|
|
couponListBean.tenantCode = map['tenantCode']; |
|
|
|
couponListBeans.tenantCode = map['tenantCode']; |
|
|
|
couponListBean.type = map['type']; |
|
|
|
couponListBeans.type = map['type']; |
|
|
|
couponListBean.promotionName = map['promotionName']; |
|
|
|
couponListBeans.promotionName = map['promotionName']; |
|
|
|
couponListBean.usable = map['usable']; |
|
|
|
couponListBeans.usable = map['usable']; |
|
|
|
couponListBean.allProduct = map['allProduct']; |
|
|
|
couponListBeans.allProduct = map['allProduct']; |
|
|
|
couponListBean.isMaxCoupon = map['isMaxCoupon']; |
|
|
|
couponListBeans.isMaxCoupon = map['isMaxCoupon']; |
|
|
|
couponListBean.productList = map['productList']; |
|
|
|
couponListBeans.productList = map['productList']; |
|
|
|
return couponListBean; |
|
|
|
return couponListBeans; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map toJson() => { |
|
|
|
Map toJson() => { |
|
|
|