|
|
|
|
|
|
|
|
|
import 'package:huixiang/retrofit/data/order_product_vo.dart';
|
|
|
|
|
|
|
|
|
|
class SettleOrderInfo {
|
|
|
|
|
int orderNum;
|
|
|
|
|
int productNum;
|
|
|
|
|
int mins;
|
|
|
|
|
MemberVo memberVO;
|
|
|
|
|
String postAge;
|
|
|
|
|
String price;
|
|
|
|
|
String benefitDiscountAmount;
|
|
|
|
|
String orderSum;
|
|
|
|
|
String discountAmount;
|
|
|
|
|
List<PromotionInfoListBean> promotionInfoList;
|
|
|
|
|
List<CouponListBean> couponList;
|
|
|
|
|
String threshold;
|
|
|
|
|
String freePostAge;
|
|
|
|
|
List<OrderProductVOList> orderProductList;
|
|
|
|
|
String promotionId;
|
|
|
|
|
String memberCouponId;
|
|
|
|
|
bool usePlateMoney;
|
|
|
|
|
bool isRaise;
|
|
|
|
|
bool isVipDay;
|
|
|
|
|
int selectDiscount;
|
|
|
|
|
bool useVipPriceSelect = false;
|
|
|
|
|
String vipDiscountAmount;
|
|
|
|
|
String totalDiscountAmount;
|
|
|
|
|
String vipDayDiscountAmount;
|
|
|
|
|
String discountType;
|
|
|
|
|
String totalPackagingFee;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static SettleOrderInfo fromJson(Map<String, dynamic> map) {
|
|
|
|
|
if (map == null) return null;
|
|
|
|
|
SettleOrderInfo settleOrderInfoBean = SettleOrderInfo();
|
|
|
|
|
settleOrderInfoBean.orderNum = map['orderNum'];
|
|
|
|
|
settleOrderInfoBean.productNum = map['productNum'];
|
|
|
|
|
settleOrderInfoBean.mins = map['mins'];
|
|
|
|
|
settleOrderInfoBean.memberVO = MemberVo.fromJson(map['memberVO']);
|
|
|
|
|
settleOrderInfoBean.postAge = map['postAge'];
|
|
|
|
|
settleOrderInfoBean.price = map['price'];
|
|
|
|
|
settleOrderInfoBean.benefitDiscountAmount = map['benefitDiscountAmount'];
|
|
|
|
|
settleOrderInfoBean.orderSum = map['orderSum'];
|
|
|
|
|
settleOrderInfoBean.discountAmount = map['discountAmount'];
|
|
|
|
|
settleOrderInfoBean.promotionInfoList = List()..addAll(
|
|
|
|
|
(map['promotionInfoList'] as List ?? []).map((o) => PromotionInfoListBean.fromJson(o))
|
|
|
|
|
);
|
|
|
|
|
settleOrderInfoBean.couponList = List()..addAll(
|
|
|
|
|
(map['couponList'] as List ?? []).map((o) => CouponListBean.fromJson(o))
|
|
|
|
|
);
|
|
|
|
|
settleOrderInfoBean.threshold = map['threshold'];
|
|
|
|
|
settleOrderInfoBean.freePostAge = map['freePostAge'];
|
|
|
|
|
settleOrderInfoBean.orderProductList = List()..addAll(
|
|
|
|
|
(map['orderProductList'] as List ?? []).map((o) => OrderProductVOList.fromJson(o))
|
|
|
|
|
);
|
|
|
|
|
settleOrderInfoBean.promotionId = map['promotionId'];
|
|
|
|
|
settleOrderInfoBean.memberCouponId = map['memberCouponId'];
|
|
|
|
|
settleOrderInfoBean.usePlateMoney = map['usePlateMoney'];
|
|
|
|
|
settleOrderInfoBean.isRaise = map['isRaise'];
|
|
|
|
|
settleOrderInfoBean.isVipDay = map['isVipDay'];
|
|
|
|
|
settleOrderInfoBean.selectDiscount = map['selectDiscount'];
|
|
|
|
|
settleOrderInfoBean.vipDiscountAmount = map['vipDiscountAmount'];
|
|
|
|
|
settleOrderInfoBean.totalDiscountAmount = map['totalDiscountAmount'];
|
|
|
|
|
settleOrderInfoBean.vipDayDiscountAmount = map['vipDayDiscountAmount'];
|
|
|
|
|
settleOrderInfoBean.discountType = map['discountType'];
|
|
|
|
|
settleOrderInfoBean.totalPackagingFee = map['totalPackagingFee'];
|
|
|
|
|
return settleOrderInfoBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map toJson() => {
|
|
|
|
|
"orderNum": orderNum,
|
|
|
|
|
"productNum": productNum,
|
|
|
|
|
"mins": mins,
|
|
|
|
|
"memberVO": memberVO,
|
|
|
|
|
"postAge": postAge,
|
|
|
|
|
"price": price,
|
|
|
|
|
"benefitDiscountAmount": benefitDiscountAmount,
|
|
|
|
|
"orderSum": orderSum,
|
|
|
|
|
"discountAmount": discountAmount,
|
|
|
|
|
"promotionInfoList": promotionInfoList,
|
|
|
|
|
"couponList": couponList,
|
|
|
|
|
"threshold": threshold,
|
|
|
|
|
"freePostAge": freePostAge,
|
|
|
|
|
"orderProductList": orderProductList,
|
|
|
|
|
"promotionId": promotionId,
|
|
|
|
|
"memberCouponId": memberCouponId,
|
|
|
|
|
"usePlateMoney":usePlateMoney,
|
|
|
|
|
"isVipDay":isVipDay,
|
|
|
|
|
"selectDiscount":selectDiscount,
|
|
|
|
|
"vipDiscountAmount":vipDiscountAmount,
|
|
|
|
|
"totalDiscountAmount": totalDiscountAmount,
|
|
|
|
|
"vipDayDiscountAmount": vipDayDiscountAmount,
|
|
|
|
|
"discountType":discountType,
|
|
|
|
|
"packagingFee" : totalPackagingFee,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// id : null
|
|
|
|
|
/// createTime : null
|
|
|
|
|
/// createUser : null
|
|
|
|
|
/// updateTime : null
|
|
|
|
|
/// updateUser : null
|
|
|
|
|
/// tenantCode : null
|
|
|
|
|
/// storeId : null
|
|
|
|
|
/// orderId : null
|
|
|
|
|
/// actInfo : null
|
|
|
|
|
/// productId : "1426095718614958080"
|
|
|
|
|
/// productName : "ɣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD>"
|
|
|
|
|
/// skuId : "1426095718740787200"
|
|
|
|
|
/// skuNameStr : "ɳ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 700ml"
|
|
|
|
|
/// skuImg : null
|
|
|
|
|
/// buyNum : 1
|
|
|
|
|
/// refundNum : null
|
|
|
|
|
/// type : null
|
|
|
|
|
/// reason : null
|
|
|
|
|
/// weight : 0.0
|
|
|
|
|
/// applyPrice : "28.00"
|
|
|
|
|
/// sellPrice : "28.00"
|
|
|
|
|
/// postPay : null
|
|
|
|
|
/// isDelete : null
|
|
|
|
|
/// discountAmount : null
|
|
|
|
|
/// discountPercent : null
|
|
|
|
|
/// status : null
|
|
|
|
|
/// batch : null
|
|
|
|
|
|
|
|
|
|
// class OrderProductListBean {
|
|
|
|
|
// dynamic id;
|
|
|
|
|
// dynamic createTime;
|
|
|
|
|
// dynamic createUser;
|
|
|
|
|
// dynamic updateTime;
|
|
|
|
|
// dynamic updateUser;
|
|
|
|
|
// dynamic tenantCode;
|
|
|
|
|
// dynamic storeId;
|
|
|
|
|
// dynamic orderId;
|
|
|
|
|
// dynamic actInfo;
|
|
|
|
|
// String productId;
|
|
|
|
|
// String productName;
|
|
|
|
|
// String skuId;
|
|
|
|
|
// String skuNameStr;
|
|
|
|
|
// dynamic skuImg;
|
|
|
|
|
// int buyNum;
|
|
|
|
|
// dynamic refundNum;
|
|
|
|
|
// dynamic type;
|
|
|
|
|
// dynamic reason;
|
|
|
|
|
// double weight;
|
|
|
|
|
// String applyPrice;
|
|
|
|
|
// String sellPrice;
|
|
|
|
|
// dynamic postPay;
|
|
|
|
|
// dynamic isDelete;
|
|
|
|
|
// dynamic discountAmount;
|
|
|
|
|
// dynamic discountPercent;
|
|
|
|
|
// dynamic status;
|
|
|
|
|
// dynamic batch;
|
|
|
|
|
//
|
|
|
|
|
// static OrderProductListBean fromJson(Map<String, dynamic> map) {
|
|
|
|
|
// if (map == null) return null;
|
|
|
|
|
// OrderProductListBean orderProductListBean = OrderProductListBean();
|
|
|
|
|
// orderProductListBean.id = map['id'];
|
|
|
|
|
// orderProductListBean.createTime = map['createTime'];
|
|
|
|
|
// orderProductListBean.createUser = map['createUser'];
|
|
|
|
|
// orderProductListBean.updateTime = map['updateTime'];
|
|
|
|
|
// orderProductListBean.updateUser = map['updateUser'];
|
|
|
|
|
// orderProductListBean.tenantCode = map['tenantCode'];
|
|
|
|
|
// orderProductListBean.storeId = map['storeId'];
|
|
|
|
|
// orderProductListBean.orderId = map['orderId'];
|
|
|
|
|
// orderProductListBean.actInfo = map['actInfo'];
|
|
|
|
|
// orderProductListBean.productId = map['productId'];
|
|
|
|
|
// orderProductListBean.productName = map['productName'];
|
|
|
|
|
// orderProductListBean.skuId = map['skuId'];
|
|
|
|
|
// orderProductListBean.skuNameStr = map['skuNameStr'];
|
|
|
|
|
// orderProductListBean.skuImg = map['skuImg'];
|
|
|
|
|
// orderProductListBean.buyNum = map['buyNum'];
|
|
|
|
|
// orderProductListBean.refundNum = map['refundNum'];
|
|
|
|
|
// orderProductListBean.type = map['type'];
|
|
|
|
|
// orderProductListBean.reason = map['reason'];
|
|
|
|
|
// orderProductListBean.weight = map['weight'];
|
|
|
|
|
// orderProductListBean.applyPrice = map['applyPrice'];
|
|
|
|
|
// orderProductListBean.sellPrice = map['sellPrice'];
|
|
|
|
|
// orderProductListBean.postPay = map['postPay'];
|
|
|
|
|
// orderProductListBean.isDelete = map['isDelete'];
|
|
|
|
|
// orderProductListBean.discountAmount = map['discountAmount'];
|
|
|
|
|
// orderProductListBean.discountPercent = map['discountPercent'];
|
|
|
|
|
// orderProductListBean.status = map['status'];
|
|
|
|
|
// orderProductListBean.batch = map['batch'];
|
|
|
|
|
// return orderProductListBean;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// Map toJson() => {
|
|
|
|
|
// "id": id,
|
|
|
|
|
// "createTime": createTime,
|
|
|
|
|
// "createUser": createUser,
|
|
|
|
|
// "updateTime": updateTime,
|
|
|
|
|
// "updateUser": updateUser,
|
|
|
|
|
// "tenantCode": tenantCode,
|
|
|
|
|
// "storeId": storeId,
|
|
|
|
|
// "orderId": orderId,
|
|
|
|
|
// "actInfo": actInfo,
|
|
|
|
|
// "productId": productId,
|
|
|
|
|
// "productName": productName,
|
|
|
|
|
// "skuId": skuId,
|
|
|
|
|
// "skuNameStr": skuNameStr,
|
|
|
|
|
// "skuImg": skuImg,
|
|
|
|
|
// "buyNum": buyNum,
|
|
|
|
|
// "refundNum": refundNum,
|
|
|
|
|
// "type": type,
|
|
|
|
|
// "reason": reason,
|
|
|
|
|
// "weight": weight,
|
|
|
|
|
// "applyPrice": applyPrice,
|
|
|
|
|
// "sellPrice": sellPrice,
|
|
|
|
|
// "postPay": postPay,
|
|
|
|
|
// "isDelete": isDelete,
|
|
|
|
|
// "discountAmount": discountAmount,
|
|
|
|
|
// "discountPercent": discountPercent,
|
|
|
|
|
// "status": status,
|
|
|
|
|
// "batch": batch,
|
|
|
|
|
// };
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
/// id : "1448907890034212864"
|
|
|
|
|
/// storeId : "1333246101343436800"
|
|
|
|
|
/// bizType : 1
|
|
|
|
|
/// fullAmount : "10.00"
|
|
|
|
|
/// discountAmount : "8.00"
|
|
|
|
|
/// fullNumber : 1
|
|
|
|
|
/// discountPercent : 100
|
|
|
|
|
/// bizId : ""
|
|
|
|
|
/// publishStartTime : "2021-10-01"
|
|
|
|
|
/// publishEndTime : "2021-10-29"
|
|
|
|
|
/// useStartTime : "2021-10-02"
|
|
|
|
|
/// useEndTime : "2021-10-31"
|
|
|
|
|
/// promotionId : "0"
|
|
|
|
|
/// mid : "1438443365845696512"
|
|
|
|
|
/// couponId : "1448902034085380096"
|
|
|
|
|
/// receiveTime : "2021-10-15"
|
|
|
|
|
/// useTime : null
|
|
|
|
|
/// status : 1
|
|
|
|
|
/// tenantCode : "1175"
|
|
|
|
|
/// type : 1
|
|
|
|
|
/// promotionName : "<EFBFBD><EFBFBD>10-8"
|
|
|
|
|
/// usable : true
|
|
|
|
|
/// allProduct : true
|
|
|
|
|
/// isMaxCoupon:true
|
|
|
|
|
/// productList : null
|
|
|
|
|
|
|
|
|
|
class CouponListBean {
|
|
|
|
|
String id;
|
|
|
|
|
String storeId;
|
|
|
|
|
int bizType;
|
|
|
|
|
String fullAmount;
|
|
|
|
|
String discountAmount;
|
|
|
|
|
int fullNumber;
|
|
|
|
|
int discountPercent;
|
|
|
|
|
String bizId;
|
|
|
|
|
String limitAmount;
|
|
|
|
|
String publishStartTime;
|
|
|
|
|
String publishEndTime;
|
|
|
|
|
String useStartTime;
|
|
|
|
|
String useEndTime;
|
|
|
|
|
String promotionId;
|
|
|
|
|
dynamic mid;
|
|
|
|
|
String couponId;
|
|
|
|
|
String receiveTime;
|
|
|
|
|
dynamic useTime;
|
|
|
|
|
int status;
|
|
|
|
|
String tenantCode;
|
|
|
|
|
int type;
|
|
|
|
|
String promotionName;
|
|
|
|
|
bool usable;
|
|
|
|
|
bool allProduct;
|
|
|
|
|
bool isMaxCoupon;
|
|
|
|
|
dynamic productList;
|
|
|
|
|
bool isEx;
|
|
|
|
|
String usableReason;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static CouponListBean fromJson(Map<String, dynamic> map) {
|
|
|
|
|
if (map == null) return null;
|
|
|
|
|
CouponListBean couponListBean = CouponListBean();
|
|
|
|
|
couponListBean.id = map['id'];
|
|
|
|
|
couponListBean.storeId = map['storeId'];
|
|
|
|
|
couponListBean.bizType = map['bizType'];
|
|
|
|
|
couponListBean.fullAmount = map['fullAmount'];
|
|
|
|
|
couponListBean.discountAmount = map['discountAmount'];
|
|
|
|
|
couponListBean.fullNumber = map['fullNumber'];
|
|
|
|
|
couponListBean.discountPercent = map['discountPercent'];
|
|
|
|
|
couponListBean.bizId = map['bizId'];
|
|
|
|
|
couponListBean.limitAmount = map['limitAmount'];
|
|
|
|
|
couponListBean.publishStartTime = map['publishStartTime'];
|
|
|
|
|
couponListBean.publishEndTime = map['publishEndTime'];
|
|
|
|
|
couponListBean.useStartTime = map['useStartTime'];
|
|
|
|
|
couponListBean.useEndTime = map['useEndTime'];
|
|
|
|
|
couponListBean.promotionId = map['promotionId'];
|
|
|
|
|
couponListBean.mid = map['mid'];
|
|
|
|
|
couponListBean.couponId = map['couponId'];
|
|
|
|
|
couponListBean.receiveTime = map['receiveTime'];
|
|
|
|
|
couponListBean.useTime = map['useTime'];
|
|
|
|
|
couponListBean.status = map['status'];
|
|
|
|
|
couponListBean.tenantCode = map['tenantCode'];
|
|
|
|
|
couponListBean.type = map['type'];
|
|
|
|
|
couponListBean.promotionName = map['promotionName'];
|
|
|
|
|
couponListBean.usable = map['usable'];
|
|
|
|
|
couponListBean.allProduct = map['allProduct'];
|
|
|
|
|
couponListBean.isMaxCoupon = map['isMaxCoupon'];
|
|
|
|
|
couponListBean.productList = map['productList'];
|
|
|
|
|
couponListBean.usableReason = map['usableReason'];
|
|
|
|
|
return couponListBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map toJson() => {
|
|
|
|
|
"id": id,
|
|
|
|
|
"storeId": storeId,
|
|
|
|
|
"bizType": bizType,
|
|
|
|
|
"fullAmount": fullAmount,
|
|
|
|
|
"discountAmount": discountAmount,
|
|
|
|
|
"fullNumber": fullNumber,
|
|
|
|
|
"discountPercent": discountPercent,
|
|
|
|
|
"bizId": bizId,
|
|
|
|
|
"limitAmount":limitAmount,
|
|
|
|
|
"publishStartTime": publishStartTime,
|
|
|
|
|
"publishEndTime": publishEndTime,
|
|
|
|
|
"useStartTime": useStartTime,
|
|
|
|
|
"useEndTime": useEndTime,
|
|
|
|
|
"promotionId": promotionId,
|
|
|
|
|
"mid": mid,
|
|
|
|
|
"couponId": couponId,
|
|
|
|
|
"receiveTime": receiveTime,
|
|
|
|
|
"useTime": useTime,
|
|
|
|
|
"status": status,
|
|
|
|
|
"tenantCode": tenantCode,
|
|
|
|
|
"type": type,
|
|
|
|
|
"promotionName": promotionName,
|
|
|
|
|
"usable": usable,
|
|
|
|
|
"allProduct": allProduct,
|
|
|
|
|
"isMaxCoupon": isMaxCoupon,
|
|
|
|
|
"productList": productList,
|
|
|
|
|
"usableReason":usableReason,
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// id : "1437254523520286720"
|
|
|
|
|
/// createTime : "2021-09-13 11:19:16"
|
|
|
|
|
/// createUser : "1333246101196636160"
|
|
|
|
|
/// updateTime : "2021-09-13 17:30:00"
|
|
|
|
|
/// updateUser : "0"
|
|
|
|
|
/// storeId : "1433719074906439680"
|
|
|
|
|
/// name : "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ŵ<EFBFBD>"
|
|
|
|
|
/// image : "https://pos.upload.gznl.top/1175/2021/09/44d60dab-0ae3-4d07-b624-50b8ab99d0fc.jpg"
|
|
|
|
|
/// description : "1"
|
|
|
|
|
/// status : 4
|
|
|
|
|
/// applyStartTime : "2021-09-13 11:19:16"
|
|
|
|
|
/// applyEndTime : "2021-09-13 11:19:16"
|
|
|
|
|
/// activityStartTime : "2021-09-01 00:00:00"
|
|
|
|
|
/// activityEndTime : "2021-10-30 00:00:00"
|
|
|
|
|
/// doStartTime : null
|
|
|
|
|
/// doEndTime : null
|
|
|
|
|
/// isNeedSecurityDeposit : 0
|
|
|
|
|
/// securityDeposit : "0"
|
|
|
|
|
/// tag : "11"
|
|
|
|
|
/// promotionType : 1
|
|
|
|
|
/// promotionPlan : 0
|
|
|
|
|
/// promotionDetail : [{"limitTime":"0","discountRate":"0","discountAmount":"0","fullAmount":"0","collageNumber":"0","fullNumber":"1"}]
|
|
|
|
|
/// channels : ["MINI","POS"]
|
|
|
|
|
/// isVip : false
|
|
|
|
|
/// isDelete : 0
|
|
|
|
|
/// tenantCode : "1175"
|
|
|
|
|
/// canPartake : true
|
|
|
|
|
/// isMaxPromotion : true
|
|
|
|
|
/// promotionProuctList : null
|
|
|
|
|
|
|
|
|
|
class PromotionInfoListBean {
|
|
|
|
|
String id;
|
|
|
|
|
String createTime;
|
|
|
|
|
String createUser;
|
|
|
|
|
String updateTime;
|
|
|
|
|
String updateUser;
|
|
|
|
|
String storeId;
|
|
|
|
|
String name;
|
|
|
|
|
String image;
|
|
|
|
|
String description;
|
|
|
|
|
int status;
|
|
|
|
|
String applyStartTime;
|
|
|
|
|
String applyEndTime;
|
|
|
|
|
String activityStartTime;
|
|
|
|
|
String activityEndTime;
|
|
|
|
|
dynamic doStartTime;
|
|
|
|
|
dynamic doEndTime;
|
|
|
|
|
int isNeedSecurityDeposit;
|
|
|
|
|
String securityDeposit;
|
|
|
|
|
String tag;
|
|
|
|
|
int promotionType;
|
|
|
|
|
int promotionPlan;
|
|
|
|
|
List<PromotionDetailBean> promotionDetail;
|
|
|
|
|
List<String> channels;
|
|
|
|
|
bool isVip;
|
|
|
|
|
int isDelete;
|
|
|
|
|
String tenantCode;
|
|
|
|
|
bool canPartake;
|
|
|
|
|
bool isMaxPromotion;
|
|
|
|
|
dynamic promotionProuctList;
|
|
|
|
|
|
|
|
|
|
static PromotionInfoListBean fromJson(Map<String, dynamic> map) {
|
|
|
|
|
if (map == null) return null;
|
|
|
|
|
PromotionInfoListBean promotionInfoListBean = PromotionInfoListBean();
|
|
|
|
|
promotionInfoListBean.id = map['id'];
|
|
|
|
|
promotionInfoListBean.createTime = map['createTime'];
|
|
|
|
|
promotionInfoListBean.createUser = map['createUser'];
|
|
|
|
|
promotionInfoListBean.updateTime = map['updateTime'];
|
|
|
|
|
promotionInfoListBean.updateUser = map['updateUser'];
|
|
|
|
|
promotionInfoListBean.storeId = map['storeId'];
|
|
|
|
|
promotionInfoListBean.name = map['name'];
|
|
|
|
|
promotionInfoListBean.image = map['image'];
|
|
|
|
|
promotionInfoListBean.description = map['description'];
|
|
|
|
|
promotionInfoListBean.status = map['status'];
|
|
|
|
|
promotionInfoListBean.applyStartTime = map['applyStartTime'];
|
|
|
|
|
promotionInfoListBean.applyEndTime = map['applyEndTime'];
|
|
|
|
|
promotionInfoListBean.activityStartTime = map['activityStartTime'];
|
|
|
|
|
promotionInfoListBean.activityEndTime = map['activityEndTime'];
|
|
|
|
|
promotionInfoListBean.doStartTime = map['doStartTime'];
|
|
|
|
|
promotionInfoListBean.doEndTime = map['doEndTime'];
|
|
|
|
|
promotionInfoListBean.isNeedSecurityDeposit = map['isNeedSecurityDeposit'];
|
|
|
|
|
promotionInfoListBean.securityDeposit = map['securityDeposit'];
|
|
|
|
|
promotionInfoListBean.tag = map['tag'];
|
|
|
|
|
promotionInfoListBean.promotionType = map['promotionType'];
|
|
|
|
|
promotionInfoListBean.promotionPlan = map['promotionPlan'];
|
|
|
|
|
promotionInfoListBean.promotionDetail = List()..addAll(
|
|
|
|
|
(map['promotionDetail'] as List ?? []).map((o) => PromotionDetailBean.fromJson(o))
|
|
|
|
|
);
|
|
|
|
|
promotionInfoListBean.channels = List()..addAll(
|
|
|
|
|
(map['channels'] as List ?? []).map((o) => o.toString())
|
|
|
|
|
);
|
|
|
|
|
promotionInfoListBean.isVip = map['isVip'];
|
|
|
|
|
promotionInfoListBean.isDelete = map['isDelete'];
|
|
|
|
|
promotionInfoListBean.tenantCode = map['tenantCode'];
|
|
|
|
|
promotionInfoListBean.canPartake = map['canPartake'];
|
|
|
|
|
promotionInfoListBean.isMaxPromotion = map['isMaxPromotion'];
|
|
|
|
|
promotionInfoListBean.promotionProuctList = map['promotionProuctList'];
|
|
|
|
|
return promotionInfoListBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map toJson() => {
|
|
|
|
|
"id": id,
|
|
|
|
|
"createTime": createTime,
|
|
|
|
|
"createUser": createUser,
|
|
|
|
|
"updateTime": updateTime,
|
|
|
|
|
"updateUser": updateUser,
|
|
|
|
|
"storeId": storeId,
|
|
|
|
|
"name": name,
|
|
|
|
|
"image": image,
|
|
|
|
|
"description": description,
|
|
|
|
|
"status": status,
|
|
|
|
|
"applyStartTime": applyStartTime,
|
|
|
|
|
"applyEndTime": applyEndTime,
|
|
|
|
|
"activityStartTime": activityStartTime,
|
|
|
|
|
"activityEndTime": activityEndTime,
|
|
|
|
|
"doStartTime": doStartTime,
|
|
|
|
|
"doEndTime": doEndTime,
|
|
|
|
|
"isNeedSecurityDeposit": isNeedSecurityDeposit,
|
|
|
|
|
"securityDeposit": securityDeposit,
|
|
|
|
|
"tag": tag,
|
|
|
|
|
"promotionType": promotionType,
|
|
|
|
|
"promotionPlan": promotionPlan,
|
|
|
|
|
"promotionDetail": promotionDetail,
|
|
|
|
|
"channels": channels,
|
|
|
|
|
"isVip": isVip,
|
|
|
|
|
"isDelete": isDelete,
|
|
|
|
|
"tenantCode": tenantCode,
|
|
|
|
|
"canPartake": canPartake,
|
|
|
|
|
"isMaxPromotion": isMaxPromotion,
|
|
|
|
|
"promotionProuctList": promotionProuctList,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// limitTime : "0"
|
|
|
|
|
/// discountRate : "0"
|
|
|
|
|
/// discountAmount : "0"
|
|
|
|
|
/// fullAmount : "0"
|
|
|
|
|
/// collageNumber : "0"
|
|
|
|
|
/// fullNumber : "1"
|
|
|
|
|
|
|
|
|
|
class PromotionDetailBean {
|
|
|
|
|
String limitTime;
|
|
|
|
|
String discountRate;
|
|
|
|
|
String discountAmount;
|
|
|
|
|
String fullAmount;
|
|
|
|
|
String collageNumber;
|
|
|
|
|
String fullNumber;
|
|
|
|
|
|
|
|
|
|
static PromotionDetailBean fromJson(Map<String, dynamic> map) {
|
|
|
|
|
if (map == null) return null;
|
|
|
|
|
PromotionDetailBean promotionDetailBean = PromotionDetailBean();
|
|
|
|
|
promotionDetailBean.limitTime = map['limitTime'];
|
|
|
|
|
promotionDetailBean.discountRate = map['discountRate'];
|
|
|
|
|
promotionDetailBean.discountAmount = map['discountAmount'];
|
|
|
|
|
promotionDetailBean.fullAmount = map['fullAmount'];
|
|
|
|
|
promotionDetailBean.collageNumber = map['collageNumber'];
|
|
|
|
|
promotionDetailBean.fullNumber = map['fullNumber'];
|
|
|
|
|
return promotionDetailBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map toJson() => {
|
|
|
|
|
"limitTime": limitTime,
|
|
|
|
|
"discountRate": discountRate,
|
|
|
|
|
"discountAmount": discountAmount,
|
|
|
|
|
"fullAmount": fullAmount,
|
|
|
|
|
"collageNumber": collageNumber,
|
|
|
|
|
"fullNumber": fullNumber,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// masterId : null
|
|
|
|
|
/// masterCardRankName : null
|
|
|
|
|
/// vipNo : "1379254113602109440"
|
|
|
|
|
/// nickname : "soon"
|
|
|
|
|
/// headimg : "https://thirdwx.qlogo.cn/mmopen/vi_32/TVpH76S7l3fOMZdErn7XeyWvib7bodcfBfQiaZqSDiaia9KVkC1cKmO8EL1kdLDPREacyoND9ZbJib7ZyCxzz1fQmVA/132"
|
|
|
|
|
/// userType : true
|
|
|
|
|
/// sex : "2"
|
|
|
|
|
/// level : 1
|
|
|
|
|
/// addressId : null
|
|
|
|
|
/// remark : null
|
|
|
|
|
/// phone : "13052919193"
|
|
|
|
|
/// createTime : "2021-08-20 15:19:48"
|
|
|
|
|
/// birth : "1998-09-17"
|
|
|
|
|
/// balance : "10.50"
|
|
|
|
|
/// money : "31.12"
|
|
|
|
|
/// activityMoney : "0.00"
|
|
|
|
|
/// greenMoney : "4872.00"
|
|
|
|
|
/// expendAmount : "202.01"
|
|
|
|
|
/// organic : null
|
|
|
|
|
/// points : "745"
|
|
|
|
|
/// isBind : true
|
|
|
|
|
/// memberRankVo : {"id":"1462684050274648064","rankName":"白银会员","rankOrigin":69,"rankContent":"","rankImg":"https://pos.upload.lotus-wallet.com/MDAwMA==/2021/11/7453eb74-661e-42b7-b575-8accc00fcbf5.png","status":true,"nextId":"1462684471177248768","nextName":"黄金会员","nextOrigin":20000}
|
|
|
|
|
/// age : 24
|
|
|
|
|
/// inviteCode : null
|
|
|
|
|
/// inviteNumber : null
|
|
|
|
|
/// todayInviteNumber : null
|
|
|
|
|
/// signature : null
|
|
|
|
|
/// background : null
|
|
|
|
|
/// certification : false
|
|
|
|
|
/// hasPayPassword : null
|
|
|
|
|
/// isVip : null
|
|
|
|
|
/// vipExpire : null
|
|
|
|
|
/// isVipSubscribe : null
|
|
|
|
|
/// vipDuration : null
|
|
|
|
|
|
|
|
|
|
class MemberVo {
|
|
|
|
|
MemberVo({
|
|
|
|
|
dynamic masterId,
|
|
|
|
|
dynamic masterCardRankName,
|
|
|
|
|
String vipNo,
|
|
|
|
|
String nickname,
|
|
|
|
|
String headimg,
|
|
|
|
|
bool userType,
|
|
|
|
|
String sex,
|
|
|
|
|
num level,
|
|
|
|
|
dynamic addressId,
|
|
|
|
|
dynamic remark,
|
|
|
|
|
String phone,
|
|
|
|
|
String createTime,
|
|
|
|
|
String birth,
|
|
|
|
|
String balance,
|
|
|
|
|
String money,
|
|
|
|
|
String activityMoney,
|
|
|
|
|
String greenMoney,
|
|
|
|
|
String raiseMoney,
|
|
|
|
|
String expendAmount,
|
|
|
|
|
dynamic organic,
|
|
|
|
|
String points,
|
|
|
|
|
bool isBind,
|
|
|
|
|
MemberRankVo memberRankVo,
|
|
|
|
|
num age,
|
|
|
|
|
dynamic inviteCode,
|
|
|
|
|
dynamic inviteNumber,
|
|
|
|
|
dynamic todayInviteNumber,
|
|
|
|
|
dynamic signature,
|
|
|
|
|
dynamic background,
|
|
|
|
|
bool certification,
|
|
|
|
|
dynamic hasPayPassword,
|
|
|
|
|
dynamic isVip,
|
|
|
|
|
dynamic vipExpire,
|
|
|
|
|
dynamic isVipSubscribe,
|
|
|
|
|
dynamic vipDuration,}){
|
|
|
|
|
_masterId = masterId;
|
|
|
|
|
_masterCardRankName = masterCardRankName;
|
|
|
|
|
_vipNo = vipNo;
|
|
|
|
|
_nickname = nickname;
|
|
|
|
|
_headimg = headimg;
|
|
|
|
|
_userType = userType;
|
|
|
|
|
_sex = sex;
|
|
|
|
|
_level = level;
|
|
|
|
|
_addressId = addressId;
|
|
|
|
|
_remark = remark;
|
|
|
|
|
_phone = phone;
|
|
|
|
|
_createTime = createTime;
|
|
|
|
|
_birth = birth;
|
|
|
|
|
_balance = balance;
|
|
|
|
|
_money = money;
|
|
|
|
|
_activityMoney = activityMoney;
|
|
|
|
|
_greenMoney = greenMoney;
|
|
|
|
|
_raiseMoney = raiseMoney;
|
|
|
|
|
_expendAmount = expendAmount;
|
|
|
|
|
_organic = organic;
|
|
|
|
|
_points = points;
|
|
|
|
|
_isBind = isBind;
|
|
|
|
|
_memberRankVo = memberRankVo;
|
|
|
|
|
_age = age;
|
|
|
|
|
_inviteCode = inviteCode;
|
|
|
|
|
_inviteNumber = inviteNumber;
|
|
|
|
|
_todayInviteNumber = todayInviteNumber;
|
|
|
|
|
_signature = signature;
|
|
|
|
|
_background = background;
|
|
|
|
|
_certification = certification;
|
|
|
|
|
_hasPayPassword = hasPayPassword;
|
|
|
|
|
_isVip = isVip;
|
|
|
|
|
_vipExpire = vipExpire;
|
|
|
|
|
_isVipSubscribe = isVipSubscribe;
|
|
|
|
|
_vipDuration = vipDuration;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MemberVo.fromJson(dynamic json) {
|
|
|
|
|
_masterId = json['masterId'];
|
|
|
|
|
_masterCardRankName = json['masterCardRankName'];
|
|
|
|
|
_vipNo = json['vipNo'];
|
|
|
|
|
_nickname = json['nickname'];
|
|
|
|
|
_headimg = json['headimg'];
|
|
|
|
|
_userType = json['userType'];
|
|
|
|
|
_sex = json['sex'];
|
|
|
|
|
_level = json['level'];
|
|
|
|
|
_addressId = json['addressId'];
|
|
|
|
|
_remark = json['remark'];
|
|
|
|
|
_phone = json['phone'];
|
|
|
|
|
_createTime = json['createTime'];
|
|
|
|
|
_birth = json['birth'];
|
|
|
|
|
_balance = json['balance'];
|
|
|
|
|
_money = json['money'];
|
|
|
|
|
_activityMoney = json['activityMoney'];
|
|
|
|
|
_greenMoney = json['greenMoney'];
|
|
|
|
|
_raiseMoney = json['raiseMoney'];
|
|
|
|
|
_expendAmount = json['expendAmount'];
|
|
|
|
|
_organic = json['organic'];
|
|
|
|
|
_points = json['points'];
|
|
|
|
|
_isBind = json['isBind'];
|
|
|
|
|
_memberRankVo = json['memberRankVo'] != null ? MemberRankVo.fromJson(json['memberRankVo']) : null;
|
|
|
|
|
_age = json['age'];
|
|
|
|
|
_inviteCode = json['inviteCode'];
|
|
|
|
|
_inviteNumber = json['inviteNumber'];
|
|
|
|
|
_todayInviteNumber = json['todayInviteNumber'];
|
|
|
|
|
_signature = json['signature'];
|
|
|
|
|
_background = json['background'];
|
|
|
|
|
_certification = json['certification'];
|
|
|
|
|
_hasPayPassword = json['hasPayPassword'];
|
|
|
|
|
_isVip = json['isVip'];
|
|
|
|
|
_vipExpire = json['vipExpire'];
|
|
|
|
|
_isVipSubscribe = json['isVipSubscribe'];
|
|
|
|
|
_vipDuration = json['vipDuration'];
|
|
|
|
|
}
|
|
|
|
|
dynamic _masterId;
|
|
|
|
|
dynamic _masterCardRankName;
|
|
|
|
|
String _vipNo;
|
|
|
|
|
String _nickname;
|
|
|
|
|
String _headimg;
|
|
|
|
|
bool _userType;
|
|
|
|
|
String _sex;
|
|
|
|
|
num _level;
|
|
|
|
|
dynamic _addressId;
|
|
|
|
|
dynamic _remark;
|
|
|
|
|
String _phone;
|
|
|
|
|
String _createTime;
|
|
|
|
|
String _birth;
|
|
|
|
|
String _balance;
|
|
|
|
|
String _money;
|
|
|
|
|
String _activityMoney;
|
|
|
|
|
String _greenMoney;
|
|
|
|
|
String _raiseMoney;
|
|
|
|
|
String _expendAmount;
|
|
|
|
|
dynamic _organic;
|
|
|
|
|
String _points;
|
|
|
|
|
bool _isBind;
|
|
|
|
|
MemberRankVo _memberRankVo;
|
|
|
|
|
num _age;
|
|
|
|
|
dynamic _inviteCode;
|
|
|
|
|
dynamic _inviteNumber;
|
|
|
|
|
dynamic _todayInviteNumber;
|
|
|
|
|
dynamic _signature;
|
|
|
|
|
dynamic _background;
|
|
|
|
|
bool _certification;
|
|
|
|
|
dynamic _hasPayPassword;
|
|
|
|
|
dynamic _isVip;
|
|
|
|
|
dynamic _vipExpire;
|
|
|
|
|
dynamic _isVipSubscribe;
|
|
|
|
|
dynamic _vipDuration;
|
|
|
|
|
MemberVo copyWith({ dynamic masterId,
|
|
|
|
|
dynamic masterCardRankName,
|
|
|
|
|
String vipNo,
|
|
|
|
|
String nickname,
|
|
|
|
|
String headimg,
|
|
|
|
|
bool userType,
|
|
|
|
|
String sex,
|
|
|
|
|
num level,
|
|
|
|
|
dynamic addressId,
|
|
|
|
|
dynamic remark,
|
|
|
|
|
String phone,
|
|
|
|
|
String createTime,
|
|
|
|
|
String birth,
|
|
|
|
|
String balance,
|
|
|
|
|
String money,
|
|
|
|
|
String activityMoney,
|
|
|
|
|
String greenMoney,
|
|
|
|
|
String raiseMoney,
|
|
|
|
|
String expendAmount,
|
|
|
|
|
dynamic organic,
|
|
|
|
|
String points,
|
|
|
|
|
bool isBind,
|
|
|
|
|
MemberRankVo memberRankVo,
|
|
|
|
|
num age,
|
|
|
|
|
dynamic inviteCode,
|
|
|
|
|
dynamic inviteNumber,
|
|
|
|
|
dynamic todayInviteNumber,
|
|
|
|
|
dynamic signature,
|
|
|
|
|
dynamic background,
|
|
|
|
|
bool certification,
|
|
|
|
|
dynamic hasPayPassword,
|
|
|
|
|
dynamic isVip,
|
|
|
|
|
dynamic vipExpire,
|
|
|
|
|
dynamic isVipSubscribe,
|
|
|
|
|
dynamic vipDuration,
|
|
|
|
|
}) => MemberVo( masterId: masterId ?? _masterId,
|
|
|
|
|
masterCardRankName: masterCardRankName ?? _masterCardRankName,
|
|
|
|
|
vipNo: vipNo ?? _vipNo,
|
|
|
|
|
nickname: nickname ?? _nickname,
|
|
|
|
|
headimg: headimg ?? _headimg,
|
|
|
|
|
userType: userType ?? _userType,
|
|
|
|
|
sex: sex ?? _sex,
|
|
|
|
|
level: level ?? _level,
|
|
|
|
|
addressId: addressId ?? _addressId,
|
|
|
|
|
remark: remark ?? _remark,
|
|
|
|
|
phone: phone ?? _phone,
|
|
|
|
|
createTime: createTime ?? _createTime,
|
|
|
|
|
birth: birth ?? _birth,
|
|
|
|
|
balance: balance ?? _balance,
|
|
|
|
|
money: money ?? _money,
|
|
|
|
|
activityMoney: activityMoney ?? _activityMoney,
|
|
|
|
|
greenMoney: greenMoney ?? _greenMoney,
|
|
|
|
|
raiseMoney: raiseMoney ?? _raiseMoney,
|
|
|
|
|
expendAmount: expendAmount ?? _expendAmount,
|
|
|
|
|
organic: organic ?? _organic,
|
|
|
|
|
points: points ?? _points,
|
|
|
|
|
isBind: isBind ?? _isBind,
|
|
|
|
|
memberRankVo: memberRankVo ?? _memberRankVo,
|
|
|
|
|
age: age ?? _age,
|
|
|
|
|
inviteCode: inviteCode ?? _inviteCode,
|
|
|
|
|
inviteNumber: inviteNumber ?? _inviteNumber,
|
|
|
|
|
todayInviteNumber: todayInviteNumber ?? _todayInviteNumber,
|
|
|
|
|
signature: signature ?? _signature,
|
|
|
|
|
background: background ?? _background,
|
|
|
|
|
certification: certification ?? _certification,
|
|
|
|
|
hasPayPassword: hasPayPassword ?? _hasPayPassword,
|
|
|
|
|
isVip: isVip ?? _isVip,
|
|
|
|
|
vipExpire: vipExpire ?? _vipExpire,
|
|
|
|
|
isVipSubscribe: isVipSubscribe ?? _isVipSubscribe,
|
|
|
|
|
vipDuration: vipDuration ?? _vipDuration,
|
|
|
|
|
);
|
|
|
|
|
dynamic get masterId => _masterId;
|
|
|
|
|
dynamic get masterCardRankName => _masterCardRankName;
|
|
|
|
|
String get vipNo => _vipNo;
|
|
|
|
|
String get nickname => _nickname;
|
|
|
|
|
String get headimg => _headimg;
|
|
|
|
|
bool get userType => _userType;
|
|
|
|
|
String get sex => _sex;
|
|
|
|
|
num get level => _level;
|
|
|
|
|
dynamic get addressId => _addressId;
|
|
|
|
|
dynamic get remark => _remark;
|
|
|
|
|
String get phone => _phone;
|
|
|
|
|
String get createTime => _createTime;
|
|
|
|
|
String get birth => _birth;
|
|
|
|
|
String get balance => _balance;
|
|
|
|
|
String get money => _money;
|
|
|
|
|
String get activityMoney => _activityMoney;
|
|
|
|
|
String get greenMoney => _greenMoney;
|
|
|
|
|
String get raiseMoney => _raiseMoney;
|
|
|
|
|
String get expendAmount => _expendAmount;
|
|
|
|
|
dynamic get organic => _organic;
|
|
|
|
|
String get points => _points;
|
|
|
|
|
bool get isBind => _isBind;
|
|
|
|
|
MemberRankVo get memberRankVo => _memberRankVo;
|
|
|
|
|
num get age => _age;
|
|
|
|
|
dynamic get inviteCode => _inviteCode;
|
|
|
|
|
dynamic get inviteNumber => _inviteNumber;
|
|
|
|
|
dynamic get todayInviteNumber => _todayInviteNumber;
|
|
|
|
|
dynamic get signature => _signature;
|
|
|
|
|
dynamic get background => _background;
|
|
|
|
|
bool get certification => _certification;
|
|
|
|
|
dynamic get hasPayPassword => _hasPayPassword;
|
|
|
|
|
dynamic get isVip => _isVip;
|
|
|
|
|
dynamic get vipExpire => _vipExpire;
|
|
|
|
|
dynamic get isVipSubscribe => _isVipSubscribe;
|
|
|
|
|
dynamic get vipDuration => _vipDuration;
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['masterId'] = _masterId;
|
|
|
|
|
map['masterCardRankName'] = _masterCardRankName;
|
|
|
|
|
map['vipNo'] = _vipNo;
|
|
|
|
|
map['nickname'] = _nickname;
|
|
|
|
|
map['headimg'] = _headimg;
|
|
|
|
|
map['userType'] = _userType;
|
|
|
|
|
map['sex'] = _sex;
|
|
|
|
|
map['level'] = _level;
|
|
|
|
|
map['addressId'] = _addressId;
|
|
|
|
|
map['remark'] = _remark;
|
|
|
|
|
map['phone'] = _phone;
|
|
|
|
|
map['createTime'] = _createTime;
|
|
|
|
|
map['birth'] = _birth;
|
|
|
|
|
map['balance'] = _balance;
|
|
|
|
|
map['money'] = _money;
|
|
|
|
|
map['activityMoney'] = _activityMoney;
|
|
|
|
|
map['greenMoney'] = _greenMoney;
|
|
|
|
|
map['raiseMoney'] = _raiseMoney;
|
|
|
|
|
map['expendAmount'] = _expendAmount;
|
|
|
|
|
map['organic'] = _organic;
|
|
|
|
|
map['points'] = _points;
|
|
|
|
|
map['isBind'] = _isBind;
|
|
|
|
|
if (_memberRankVo != null) {
|
|
|
|
|
map['memberRankVo'] = _memberRankVo.toJson();
|
|
|
|
|
}
|
|
|
|
|
map['age'] = _age;
|
|
|
|
|
map['inviteCode'] = _inviteCode;
|
|
|
|
|
map['inviteNumber'] = _inviteNumber;
|
|
|
|
|
map['todayInviteNumber'] = _todayInviteNumber;
|
|
|
|
|
map['signature'] = _signature;
|
|
|
|
|
map['background'] = _background;
|
|
|
|
|
map['certification'] = _certification;
|
|
|
|
|
map['hasPayPassword'] = _hasPayPassword;
|
|
|
|
|
map['isVip'] = _isVip;
|
|
|
|
|
map['vipExpire'] = _vipExpire;
|
|
|
|
|
map['isVipSubscribe'] = _isVipSubscribe;
|
|
|
|
|
map['vipDuration'] = _vipDuration;
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// id : "1462684050274648064"
|
|
|
|
|
/// rankName : "白银会员"
|
|
|
|
|
/// rankOrigin : 69
|
|
|
|
|
/// rankContent : ""
|
|
|
|
|
/// rankImg : "https://pos.upload.lotus-wallet.com/MDAwMA==/2021/11/7453eb74-661e-42b7-b575-8accc00fcbf5.png"
|
|
|
|
|
/// status : true
|
|
|
|
|
/// nextId : "1462684471177248768"
|
|
|
|
|
/// nextName : "黄金会员"
|
|
|
|
|
/// nextOrigin : 20000
|
|
|
|
|
|
|
|
|
|
class MemberRankVo {
|
|
|
|
|
MemberRankVo({
|
|
|
|
|
String id,
|
|
|
|
|
String rankName,
|
|
|
|
|
num rankOrigin,
|
|
|
|
|
String rankContent,
|
|
|
|
|
String rankImg,
|
|
|
|
|
bool status,
|
|
|
|
|
String nextId,
|
|
|
|
|
String nextName,
|
|
|
|
|
num nextOrigin,}){
|
|
|
|
|
_id = id;
|
|
|
|
|
_rankName = rankName;
|
|
|
|
|
_rankOrigin = rankOrigin;
|
|
|
|
|
_rankContent = rankContent;
|
|
|
|
|
_rankImg = rankImg;
|
|
|
|
|
_status = status;
|
|
|
|
|
_nextId = nextId;
|
|
|
|
|
_nextName = nextName;
|
|
|
|
|
_nextOrigin = nextOrigin;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MemberRankVo.fromJson(dynamic json) {
|
|
|
|
|
_id = json['id'];
|
|
|
|
|
_rankName = json['rankName'];
|
|
|
|
|
_rankOrigin = json['rankOrigin'];
|
|
|
|
|
_rankContent = json['rankContent'];
|
|
|
|
|
_rankImg = json['rankImg'];
|
|
|
|
|
_status = json['status'];
|
|
|
|
|
_nextId = json['nextId'];
|
|
|
|
|
_nextName = json['nextName'];
|
|
|
|
|
_nextOrigin = json['nextOrigin'];
|
|
|
|
|
}
|
|
|
|
|
String _id;
|
|
|
|
|
String _rankName;
|
|
|
|
|
num _rankOrigin;
|
|
|
|
|
String _rankContent;
|
|
|
|
|
String _rankImg;
|
|
|
|
|
bool _status;
|
|
|
|
|
String _nextId;
|
|
|
|
|
String _nextName;
|
|
|
|
|
num _nextOrigin;
|
|
|
|
|
MemberRankVo copyWith({ String id,
|
|
|
|
|
String rankName,
|
|
|
|
|
num rankOrigin,
|
|
|
|
|
String rankContent,
|
|
|
|
|
String rankImg,
|
|
|
|
|
bool status,
|
|
|
|
|
String nextId,
|
|
|
|
|
String nextName,
|
|
|
|
|
num nextOrigin,
|
|
|
|
|
}) => MemberRankVo( id: id ?? _id,
|
|
|
|
|
rankName: rankName ?? _rankName,
|
|
|
|
|
rankOrigin: rankOrigin ?? _rankOrigin,
|
|
|
|
|
rankContent: rankContent ?? _rankContent,
|
|
|
|
|
rankImg: rankImg ?? _rankImg,
|
|
|
|
|
status: status ?? _status,
|
|
|
|
|
nextId: nextId ?? _nextId,
|
|
|
|
|
nextName: nextName ?? _nextName,
|
|
|
|
|
nextOrigin: nextOrigin ?? _nextOrigin,
|
|
|
|
|
);
|
|
|
|
|
String get id => _id;
|
|
|
|
|
String get rankName => _rankName;
|
|
|
|
|
num get rankOrigin => _rankOrigin;
|
|
|
|
|
String get rankContent => _rankContent;
|
|
|
|
|
String get rankImg => _rankImg;
|
|
|
|
|
bool get status => _status;
|
|
|
|
|
String get nextId => _nextId;
|
|
|
|
|
String get nextName => _nextName;
|
|
|
|
|
num get nextOrigin => _nextOrigin;
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
|
map['id'] = _id;
|
|
|
|
|
map['rankName'] = _rankName;
|
|
|
|
|
map['rankOrigin'] = _rankOrigin;
|
|
|
|
|
map['rankContent'] = _rankContent;
|
|
|
|
|
map['rankImg'] = _rankImg;
|
|
|
|
|
map['status'] = _status;
|
|
|
|
|
map['nextId'] = _nextId;
|
|
|
|
|
map['nextName'] = _nextName;
|
|
|
|
|
map['nextOrigin'] = _nextOrigin;
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|