You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
878 lines
29 KiB
878 lines
29 KiB
|
|
import 'package:huixiang/retrofit/data/down_order.dart'; |
|
import 'package:huixiang/retrofit/data/order_product_vo.dart'; |
|
import 'package:huixiang/retrofit/data/shoppingCart.dart'; |
|
|
|
/// id : "1408358257373741056" |
|
/// createTime : "2021-06-25 17:35:49" |
|
/// createUser : "1404743858104827904" |
|
/// updateTime : "2021-06-25 17:35:49" |
|
/// updateUser : "1404743858104827904" |
|
/// tenantCode : "1177" |
|
/// storeId : "1344490596986781696" |
|
/// storeName : "测试" |
|
/// tableId : "0" |
|
/// mid : "1404743858104827904" |
|
/// parentId : "1408358257004642304" |
|
/// parentCode : "202106251735490003" |
|
/// orderCode : "202106251735490004" |
|
/// dayFlowCode : "003" |
|
/// orderStatus : 2 |
|
/// sendStatus : 0 |
|
/// payStatus : 1 |
|
/// memberAccount : "占永辉_o3DjK5OuaeRBR-yo_GEh6gs5J9xI" |
|
/// logisticsId : "0" |
|
/// shipperCode : "" |
|
/// logisticsName : "" |
|
/// logisticsNum : "" |
|
/// logisticsCase : null |
|
/// refundStatus : -1 |
|
/// addressExt : {"addressId":null,"country":null,"countryId":null,"province":"湖北省","provinceId":null,"city":"武汉市","cityId":null,"district":"武昌区","districtId":null,"address":"楚河汉界","recName":null,"recMobile":null,"longitude":"114.344225","latitude":"30.554177"} |
|
/// postFee : "0.00" |
|
/// orderSum : "20.00" |
|
/// paySum : "17.80" |
|
/// paySumSub : "0.00" |
|
/// accountPay : "0.00" |
|
/// couponSubPrice : "2.20" |
|
/// customPrice : "0.00" |
|
/// removeDecimal : "0.00" |
|
/// isSubscribe : false |
|
/// subcribeTime : null |
|
/// sendTime : null |
|
/// confirmTime : null |
|
/// returnMoneyTime : null |
|
/// notes : "" |
|
/// prepayId : null |
|
/// payTime : "2021-06-25 17:35:49" |
|
/// payChannel : 3 |
|
/// payNum : "" |
|
/// promotionId : "1405723544309989376" |
|
/// couponId : "1407162997398306816" |
|
/// isDelete : 0 |
|
/// isTakeOut : 0 |
|
/// batch : 1 |
|
/// orderDiscountPrice : "0.00" |
|
/// dishesDiscountPrice : "0.00" |
|
/// orderPercentPrice : "0.00" |
|
/// finalPayPrice : "20.00" |
|
/// activityNoPrice : "0.00" |
|
/// activityDiscountPrice : "0.00" |
|
/// totalDiscountPrice : "0.00" |
|
/// orderSource : 1 |
|
/// storeVO : {"id":"1344490596986781696","storeName":"小小店","nickName":"","businessService":"WIFI,免费停车","businessType":"测试","logo":"","openStartTime":"08:25:43","openEndTime":"23:25:43","shipAddress":"汉街总部国际","remark":null,"mobile":"13554204268","refundAddress":null,"refundTel":null,"refundContact":null,"isAutoSendRefundAddress":1,"soldNum":null,"storeTemplateConfig":null,"storeTable":null,"threshold":null,"freePostAge":null,"logisticsThreshold":null,"logisticsFreePostAge":null,"longitude":"114.3442250000","latitude":"30.5541770000","deliveryDistance":null,"couponVO":null,"posType":{"desc":"零售商店","code":"RETAILSTORE"},"banners":null,"tips":null,"storeBrandImg":null,"defaultPostAge":null} |
|
/// orderDetail : {"orderProductList":[{"id":"1408358257390518272","platterList":null,"tenantCode":"1177","storeId":"1344490596986781696","orderId":"1408358257373741056","productId":"1404742074535772160","productName":"商品1","skuId":"1404744485652398080","skuNameStr":"中","skuImg":"","buyNum":2,"refundNum":0,"weight":0,"applyPrice":"0.00","sellPrice":"10.00","postPay":"0.00","isDelete":0,"discountAmount":"2.20","discountPercent":100}],"discountName":null,"discountMoney":null,"discountNumber":null,"activityName":null,"couponDTO":null,"orderSumPrice":"20.00","paySumPrice":"17.80","activityNoPrice":"0.00","activityPrice":"0.00","dishesList":[],"customPrice":"0.00","nextPerson":"占永辉","isTakeOut":0,"memberRec":null,"isSubscribe":null,"subcribeTime":null,"postFee":"0.00","shipperCode":"","logisticsName":"","logisticsNum":"","orderNum":0,"productNum":0,"mins":1,"predictTime":null} |
|
/// productList : [{"id":"1408358257390518272","createTime":"2021-06-25 17:35:49","createUser":"1404743858104827904","updateTime":"2021-06-25 17:35:49","updateUser":"1404743858104827904","tenantCode":null,"storeId":"1344490596986781696","orderId":"1408358257373741056","productId":"1404742074535772160","productName":"商品1","skuId":"1404744485652398080","skuNameStr":"中","skuImg":"","buyNum":2,"refundNum":0,"weight":0,"applyPrice":"0.00","sellPrice":"10.00","postPay":"0.00","isDelete":0,"discountAmount":"2.20","discountPercent":11,"status":true,"batch":1}] |
|
|
|
class OrderInfo { |
|
String id; |
|
String createTime; |
|
String createUser; |
|
String updateTime; |
|
String updateUser; |
|
String tenantCode; |
|
String storeId; |
|
String storeName; |
|
String tableId; |
|
String mid; |
|
String parentId; |
|
String parentCode; |
|
String orderCode; |
|
int orderType; |
|
String dayFlowCode; |
|
int orderStatus; |
|
int sendStatus; |
|
int payStatus; |
|
String memberAccount; |
|
String logisticsId; |
|
String shipperCode; |
|
String logisticsName; |
|
String logisticsNum; |
|
dynamic logisticsCase; |
|
int refundStatus; |
|
AddressExt addressExt; |
|
String postFee; |
|
String orderSum; |
|
String paySum; |
|
String paySumSub; |
|
String accountPay; |
|
String couponSubPrice; |
|
String customPrice; |
|
String removeDecimal; |
|
bool isSubscribe; |
|
dynamic subcribeTime; |
|
dynamic sendTime; |
|
dynamic confirmTime; |
|
dynamic returnMoneyTime; |
|
String notes; |
|
dynamic prepayId; |
|
String payTime; |
|
int payChannel; |
|
String payNum; |
|
String promotionId; |
|
String couponId; |
|
int isDelete; |
|
int isTakeOut; |
|
int batch; |
|
String orderDiscountPrice; |
|
String dishesDiscountPrice; |
|
String orderPercentPrice; |
|
String finalPayPrice; |
|
String activityNoPrice; |
|
String activityDiscountPrice; |
|
String totalDiscountPrice; |
|
int orderSource; |
|
StoreVO storeVO; |
|
OrderDetail orderDetail; |
|
List<OrderProductVOList> productList; |
|
|
|
OrderInfo( |
|
{String id, |
|
String createTime, |
|
String createUser, |
|
String updateTime, |
|
String updateUser, |
|
String tenantCode, |
|
String storeId, |
|
String storeName, |
|
String tableId, |
|
String mid, |
|
String parentId, |
|
String parentCode, |
|
String orderCode, |
|
int orderType, |
|
String dayFlowCode, |
|
int orderStatus, |
|
int sendStatus, |
|
int payStatus, |
|
String memberAccount, |
|
String logisticsId, |
|
String shipperCode, |
|
String logisticsName, |
|
String logisticsNum, |
|
dynamic logisticsCase, |
|
int refundStatus, |
|
AddressExt addressExt, |
|
String postFee, |
|
String orderSum, |
|
String paySum, |
|
String paySumSub, |
|
String accountPay, |
|
String couponSubPrice, |
|
String customPrice, |
|
String removeDecimal, |
|
bool isSubscribe, |
|
dynamic subcribeTime, |
|
dynamic sendTime, |
|
dynamic confirmTime, |
|
dynamic returnMoneyTime, |
|
String notes, |
|
dynamic prepayId, |
|
String payTime, |
|
int payChannel, |
|
String payNum, |
|
String promotionId, |
|
String couponId, |
|
int isDelete, |
|
int isTakeOut, |
|
int batch, |
|
String orderDiscountPrice, |
|
String dishesDiscountPrice, |
|
String orderPercentPrice, |
|
String finalPayPrice, |
|
String activityNoPrice, |
|
String activityDiscountPrice, |
|
String totalDiscountPrice, |
|
int orderSource, |
|
StoreVO storeVO, |
|
OrderDetail orderDetail, |
|
List< OrderProductVOList> productList}) { |
|
this.id = id; |
|
this.createTime = createTime; |
|
this.createUser = createUser; |
|
this.updateTime = updateTime; |
|
this.updateUser = updateUser; |
|
this.tenantCode = tenantCode; |
|
this.storeId = storeId; |
|
this.storeName = storeName; |
|
this.tableId = tableId; |
|
this.mid = mid; |
|
this.parentId = parentId; |
|
this.parentCode = parentCode; |
|
this.orderCode = orderCode; |
|
this.orderType = orderType; |
|
this.dayFlowCode = dayFlowCode; |
|
this.orderStatus = orderStatus; |
|
this.sendStatus = sendStatus; |
|
this.payStatus = payStatus; |
|
this.memberAccount = memberAccount; |
|
this.logisticsId = logisticsId; |
|
this.shipperCode = shipperCode; |
|
this.logisticsName = logisticsName; |
|
this.logisticsNum = logisticsNum; |
|
this.logisticsCase = logisticsCase; |
|
this.refundStatus = refundStatus; |
|
this.addressExt = addressExt; |
|
this.postFee = postFee; |
|
this.orderSum = orderSum; |
|
this.paySum = paySum; |
|
this.paySumSub = paySumSub; |
|
this.accountPay = accountPay; |
|
this.couponSubPrice = couponSubPrice; |
|
this.customPrice = customPrice; |
|
this.removeDecimal = removeDecimal; |
|
this.isSubscribe = isSubscribe; |
|
this.subcribeTime = subcribeTime; |
|
this.sendTime = sendTime; |
|
this.confirmTime = confirmTime; |
|
this.returnMoneyTime = returnMoneyTime; |
|
this.notes = notes; |
|
this.prepayId = prepayId; |
|
this.payTime = payTime; |
|
this.payChannel = payChannel; |
|
this.payNum = payNum; |
|
this.promotionId = promotionId; |
|
this.couponId = couponId; |
|
this.isDelete = isDelete; |
|
this.isTakeOut = isTakeOut; |
|
this.batch = batch; |
|
this.orderDiscountPrice = orderDiscountPrice; |
|
this.dishesDiscountPrice = dishesDiscountPrice; |
|
this.orderPercentPrice = orderPercentPrice; |
|
this.finalPayPrice = finalPayPrice; |
|
this.activityNoPrice = activityNoPrice; |
|
this.activityDiscountPrice = activityDiscountPrice; |
|
this.totalDiscountPrice = totalDiscountPrice; |
|
this.orderSource = orderSource; |
|
this.storeVO = storeVO; |
|
this.orderDetail = orderDetail; |
|
this.productList = productList; |
|
} |
|
|
|
OrderInfo.fromJson(dynamic json) { |
|
this.id = json["id"]; |
|
this.createTime = json["createTime"]; |
|
this.createUser = json["createUser"]; |
|
this.updateTime = json["updateTime"]; |
|
this.updateUser = json["updateUser"]; |
|
this.tenantCode = json["tenantCode"]; |
|
this.storeId = json["storeId"]; |
|
this.storeName = json["storeName"]; |
|
this.tableId = json["tableId"]; |
|
this.mid = json["mid"]; |
|
this.parentId = json["parentId"]; |
|
this.parentCode = json["parentCode"]; |
|
this.orderCode = json["orderCode"]; |
|
this.orderType = json["orderType"]; |
|
this.dayFlowCode = json["dayFlowCode"]; |
|
this.orderStatus = json["orderStatus"]; |
|
this.sendStatus = json["sendStatus"]; |
|
this.payStatus = json["payStatus"]; |
|
this.memberAccount = json["memberAccount"]; |
|
this.logisticsId = json["logisticsId"]; |
|
this.shipperCode = json["shipperCode"]; |
|
this.logisticsName = json["logisticsName"]; |
|
this.logisticsNum = json["logisticsNum"]; |
|
this.logisticsCase = json["logisticsCase"]; |
|
this.refundStatus = json["refundStatus"]; |
|
this.addressExt = json["addressExt"] != null |
|
? AddressExt.fromJson(json["addressExt"]) |
|
: null; |
|
this.postFee = json["postFee"]; |
|
this.orderSum = json["orderSum"]; |
|
this.paySum = json["paySum"]; |
|
this.paySumSub = json["paySumSub"]; |
|
this.accountPay = json["accountPay"]; |
|
this.couponSubPrice = json["couponSubPrice"]; |
|
this.customPrice = json["customPrice"]; |
|
this.removeDecimal = json["removeDecimal"]; |
|
this.isSubscribe = json["isSubscribe"]; |
|
this.subcribeTime = json["subcribeTime"]; |
|
this.sendTime = json["sendTime"]; |
|
this.confirmTime = json["confirmTime"]; |
|
this.returnMoneyTime = json["returnMoneyTime"]; |
|
this.notes = json["notes"]; |
|
this.prepayId = json["prepayId"]; |
|
this.payTime = json["payTime"]; |
|
this.payChannel = json["payChannel"]; |
|
this.payNum = json["payNum"]; |
|
this.promotionId = json["promotionId"]; |
|
this.couponId = json["couponId"]; |
|
this.isDelete = json["isDelete"]; |
|
this.isTakeOut = json["isTakeOut"]; |
|
this.batch = json["batch"]; |
|
this.orderDiscountPrice = json["orderDiscountPrice"]; |
|
this.dishesDiscountPrice = json["dishesDiscountPrice"]; |
|
this.orderPercentPrice = json["orderPercentPrice"]; |
|
this.finalPayPrice = json["finalPayPrice"]; |
|
this.activityNoPrice = json["activityNoPrice"]; |
|
this.activityDiscountPrice = json["activityDiscountPrice"]; |
|
this.totalDiscountPrice = json["totalDiscountPrice"]; |
|
this.orderSource = json["orderSource"]; |
|
this.storeVO = |
|
json["storeVO"] != null ? StoreVO.fromJson(json["storeVO"]) : null; |
|
this.orderDetail = json["orderDetail"] != null |
|
? OrderDetail.fromJson(json["orderDetail"]) |
|
: null; |
|
if (json["productList"] != null) { |
|
this.productList = []; |
|
json["productList"].forEach((v) { |
|
this.productList.add( OrderProductVOList.fromJson(v)); |
|
}); |
|
} |
|
} |
|
|
|
Map<String, dynamic> toJson() { |
|
var map = <String, dynamic>{}; |
|
map["id"] = this.id; |
|
map["createTime"] = this.createTime; |
|
map["createUser"] = this.createUser; |
|
map["updateTime"] = this.updateTime; |
|
map["updateUser"] = this.updateUser; |
|
map["tenantCode"] = this.tenantCode; |
|
map["storeId"] = this.storeId; |
|
map["storeName"] = this.storeName; |
|
map["tableId"] = this.tableId; |
|
map["mid"] = this.mid; |
|
map["parentId"] = this.parentId; |
|
map["parentCode"] = this.parentCode; |
|
map["orderCode"] = this.orderCode; |
|
map["orderType"] = this.orderType; |
|
map["dayFlowCode"] = this.dayFlowCode; |
|
map["orderStatus"] = this.orderStatus; |
|
map["sendStatus"] = this.sendStatus; |
|
map["payStatus"] = this.payStatus; |
|
map["memberAccount"] = this.memberAccount; |
|
map["logisticsId"] = this.logisticsId; |
|
map["shipperCode"] = this.shipperCode; |
|
map["logisticsName"] = this.logisticsName; |
|
map["logisticsNum"] = this.logisticsNum; |
|
map["logisticsCase"] = this.logisticsCase; |
|
map["refundStatus"] = this.refundStatus; |
|
if (this.addressExt != null) { |
|
map["addressExt"] = this.addressExt.toJson(); |
|
} |
|
map["postFee"] = this.postFee; |
|
map["orderSum"] = this.orderSum; |
|
map["paySum"] = this.paySum; |
|
map["paySumSub"] = this.paySumSub; |
|
map["accountPay"] = this.accountPay; |
|
map["couponSubPrice"] = this.couponSubPrice; |
|
map["customPrice"] = this.customPrice; |
|
map["removeDecimal"] = this.removeDecimal; |
|
map["isSubscribe"] = this.isSubscribe; |
|
map["subcribeTime"] = this.subcribeTime; |
|
map["sendTime"] = this.sendTime; |
|
map["confirmTime"] = this.confirmTime; |
|
map["returnMoneyTime"] = this.returnMoneyTime; |
|
map["notes"] = this.notes; |
|
map["prepayId"] = this.prepayId; |
|
map["payTime"] = this.payTime; |
|
map["payChannel"] = this.payChannel; |
|
map["payNum"] = this.payNum; |
|
map["promotionId"] = this.promotionId; |
|
map["couponId"] = this.couponId; |
|
map["isDelete"] = this.isDelete; |
|
map["isTakeOut"] = this.isTakeOut; |
|
map["batch"] = this.batch; |
|
map["orderDiscountPrice"] = this.orderDiscountPrice; |
|
map["dishesDiscountPrice"] = this.dishesDiscountPrice; |
|
map["orderPercentPrice"] = this.orderPercentPrice; |
|
map["finalPayPrice"] = this.finalPayPrice; |
|
map["activityNoPrice"] = this.activityNoPrice; |
|
map["activityDiscountPrice"] = this.activityDiscountPrice; |
|
map["totalDiscountPrice"] = this.totalDiscountPrice; |
|
map["orderSource"] = this.orderSource; |
|
if (this.storeVO != null) { |
|
map["storeVO"] = this.storeVO.toJson(); |
|
} |
|
if (this.orderDetail != null) { |
|
map["orderDetail"] = this.orderDetail.toJson(); |
|
} |
|
if (this.productList != null) { |
|
map["productList"] = this.productList.map((v) => v.toJson()).toList(); |
|
} |
|
return map; |
|
} |
|
} |
|
|
|
class OrderDetail { |
|
List< OrderProductVOList> orderProductList; |
|
dynamic discountName; |
|
dynamic discountMoney; |
|
dynamic discountNumber; |
|
dynamic activityName; |
|
CouponDTO couponDTO; |
|
String orderSumPrice; |
|
String paySumPrice; |
|
String activityNoPrice; |
|
String activityPrice; |
|
String promotionName; |
|
List<dynamic> dishesList; |
|
String customPrice; |
|
String nextPerson; |
|
int isTakeOut; |
|
dynamic memberRec; |
|
dynamic isSubscribe; |
|
dynamic subcribeTime; |
|
String postFee; |
|
String shipperCode; |
|
String logisticsName; |
|
String logisticsNum; |
|
int orderNum; |
|
int productNum; |
|
int mins; |
|
dynamic predictTime; |
|
|
|
OrderDetail( |
|
{List< OrderProductVOList> orderProductList, |
|
dynamic discountName, |
|
dynamic discountMoney, |
|
dynamic discountNumber, |
|
dynamic activityName, |
|
CouponDTO couponDTO, |
|
String orderSumPrice, |
|
String paySumPrice, |
|
String activityNoPrice, |
|
String activityPrice, |
|
String promotionName, |
|
List<dynamic> dishesList, |
|
String customPrice, |
|
String nextPerson, |
|
int isTakeOut, |
|
dynamic memberRec, |
|
dynamic isSubscribe, |
|
dynamic subcribeTime, |
|
String postFee, |
|
String shipperCode, |
|
String logisticsName, |
|
String logisticsNum, |
|
int orderNum, |
|
int productNum, |
|
int mins, |
|
dynamic predictTime}) { |
|
this.orderProductList = orderProductList; |
|
this.discountName = discountName; |
|
this.discountMoney = discountMoney; |
|
this.discountNumber = discountNumber; |
|
this.activityName = activityName; |
|
this.couponDTO = couponDTO; |
|
this.orderSumPrice = orderSumPrice; |
|
this.paySumPrice = paySumPrice; |
|
this.activityNoPrice = activityNoPrice; |
|
this.activityPrice = activityPrice; |
|
this.promotionName = promotionName; |
|
this.dishesList = dishesList; |
|
this.customPrice = customPrice; |
|
this.nextPerson = nextPerson; |
|
this.isTakeOut = isTakeOut; |
|
this.memberRec = memberRec; |
|
this.isSubscribe = isSubscribe; |
|
this.subcribeTime = subcribeTime; |
|
this.postFee = postFee; |
|
this.shipperCode = shipperCode; |
|
this.logisticsName = logisticsName; |
|
this.logisticsNum = logisticsNum; |
|
this.orderNum = orderNum; |
|
this.productNum = productNum; |
|
this.mins = mins; |
|
this.predictTime = predictTime; |
|
} |
|
|
|
OrderDetail.fromJson(dynamic json) { |
|
if (json["orderProductList"] != null) { |
|
this.orderProductList = []; |
|
json["orderProductList"].forEach((v) { |
|
this.orderProductList.add( OrderProductVOList.fromJson(v)); |
|
}); |
|
} |
|
this.discountName = json["discountName"]; |
|
this.discountMoney = json["discountMoney"]; |
|
this.discountNumber = json["discountNumber"]; |
|
this.activityName = json["activityName"]; |
|
this.couponDTO = json["couponDTO"] != null ? CouponDTO.fromJson(json["couponDTO"]) : null; |
|
this.orderSumPrice = json["orderSumPrice"]; |
|
this.paySumPrice = json["paySumPrice"]; |
|
this.activityNoPrice = json["activityNoPrice"]; |
|
this.activityPrice = json["activityPrice"]; |
|
this.promotionName = json["promotionName"]; |
|
if (json["dishesList"] != null) { |
|
this.dishesList = []; |
|
json["dishesList"].forEach((v) { |
|
this.dishesList.add(v); |
|
}); |
|
} |
|
this.customPrice = json["customPrice"]; |
|
this.nextPerson = json["nextPerson"]; |
|
this.isTakeOut = json["isTakeOut"]; |
|
this.memberRec = json["memberRec"]; |
|
this.isSubscribe = json["isSubscribe"]; |
|
this.subcribeTime = json["subcribeTime"]; |
|
this.postFee = json["postFee"]; |
|
this.shipperCode = json["shipperCode"]; |
|
this.logisticsName = json["logisticsName"]; |
|
this.logisticsNum = json["logisticsNum"]; |
|
this.orderNum = json["orderNum"]; |
|
this.productNum = json["productNum"]; |
|
this.mins = json["mins"]; |
|
this.predictTime = json["predictTime"]; |
|
} |
|
|
|
Map<String, dynamic> toJson() { |
|
var map = <String, dynamic>{}; |
|
if (this.orderProductList != null) { |
|
map["orderProductList"] = |
|
this.orderProductList.map((v) => v.toJson()).toList(); |
|
} |
|
map["discountName"] = this.discountName; |
|
map["discountMoney"] = this.discountMoney; |
|
map["discountNumber"] = this.discountNumber; |
|
map["activityName"] = this.activityName; |
|
map["couponDTO"] = this.couponDTO; |
|
map["orderSumPrice"] = this.orderSumPrice; |
|
map["paySumPrice"] = this.paySumPrice; |
|
map["activityNoPrice"] = this.activityNoPrice; |
|
map["activityPrice"] = this.activityPrice; |
|
if (this.dishesList != null) { |
|
map["dishesList"] = this.dishesList.map((v) => v.toJson()).toList(); |
|
} |
|
map["customPrice"] = this.customPrice; |
|
map["nextPerson"] = this.nextPerson; |
|
map["isTakeOut"] = this.isTakeOut; |
|
map["memberRec"] = this.memberRec; |
|
map["isSubscribe"] = this.isSubscribe; |
|
map["subcribeTime"] = this.subcribeTime; |
|
map["postFee"] = this.postFee; |
|
map["shipperCode"] = this.shipperCode; |
|
map["logisticsName"] = this.logisticsName; |
|
map["logisticsNum"] = this.logisticsNum; |
|
map["orderNum"] = this.orderNum; |
|
map["productNum"] = this.productNum; |
|
map["mins"] = this.mins; |
|
map["predictTime"] = this.predictTime; |
|
return map; |
|
} |
|
} |
|
|
|
class StoreVO { |
|
String id; |
|
String storeName; |
|
String nickName; |
|
String businessService; |
|
String businessType; |
|
String logo; |
|
String openStartTime; |
|
String openEndTime; |
|
String shipAddress; |
|
dynamic remark; |
|
String mobile; |
|
dynamic refundAddress; |
|
dynamic refundTel; |
|
dynamic refundContact; |
|
int isAutoSendRefundAddress; |
|
dynamic soldNum; |
|
dynamic storeTemplateConfig; |
|
dynamic storeTable; |
|
dynamic threshold; |
|
dynamic freePostAge; |
|
dynamic logisticsThreshold; |
|
dynamic logisticsFreePostAge; |
|
String longitude; |
|
String latitude; |
|
dynamic deliveryDistance; |
|
dynamic couponVO; |
|
PosType posType; |
|
dynamic banners; |
|
dynamic tips; |
|
dynamic storeBrandImg; |
|
dynamic defaultPostAge; |
|
|
|
StoreVO( |
|
{String id, |
|
String storeName, |
|
String nickName, |
|
String businessService, |
|
String businessType, |
|
String logo, |
|
String openStartTime, |
|
String openEndTime, |
|
String shipAddress, |
|
dynamic remark, |
|
String mobile, |
|
dynamic refundAddress, |
|
dynamic refundTel, |
|
dynamic refundContact, |
|
int isAutoSendRefundAddress, |
|
dynamic soldNum, |
|
dynamic storeTemplateConfig, |
|
dynamic storeTable, |
|
dynamic threshold, |
|
dynamic freePostAge, |
|
dynamic logisticsThreshold, |
|
dynamic logisticsFreePostAge, |
|
String longitude, |
|
String latitude, |
|
dynamic deliveryDistance, |
|
dynamic couponVO, |
|
PosType posType, |
|
dynamic banners, |
|
dynamic tips, |
|
dynamic storeBrandImg, |
|
dynamic defaultPostAge}) { |
|
this.id = id; |
|
this.storeName = storeName; |
|
this.nickName = nickName; |
|
this.businessService = businessService; |
|
this.businessType = businessType; |
|
this.logo = logo; |
|
this.openStartTime = openStartTime; |
|
this.openEndTime = openEndTime; |
|
this.shipAddress = shipAddress; |
|
this.remark = remark; |
|
this.mobile = mobile; |
|
this.refundAddress = refundAddress; |
|
this.refundTel = refundTel; |
|
this.refundContact = refundContact; |
|
this.isAutoSendRefundAddress = isAutoSendRefundAddress; |
|
this.soldNum = soldNum; |
|
this.storeTemplateConfig = storeTemplateConfig; |
|
this.storeTable = storeTable; |
|
this.threshold = threshold; |
|
this.freePostAge = freePostAge; |
|
this.logisticsThreshold = logisticsThreshold; |
|
this.logisticsFreePostAge = logisticsFreePostAge; |
|
this.longitude = longitude; |
|
this.latitude = latitude; |
|
this.deliveryDistance = deliveryDistance; |
|
this.couponVO = couponVO; |
|
this.posType = posType; |
|
this.banners = banners; |
|
this.tips = tips; |
|
this.storeBrandImg = storeBrandImg; |
|
this.defaultPostAge = defaultPostAge; |
|
} |
|
|
|
StoreVO.fromJson(dynamic json) { |
|
this.id = json["id"]; |
|
this.storeName = json["storeName"]; |
|
this.nickName = json["nickName"]; |
|
this.businessService = json["businessService"]; |
|
this.businessType = json["businessType"]; |
|
this.logo = json["logo"]; |
|
this.openStartTime = json["openStartTime"]; |
|
this.openEndTime = json["openEndTime"]; |
|
this.shipAddress = json["shipAddress"]; |
|
this.remark = json["remark"]; |
|
this.mobile = json["mobile"]; |
|
this.refundAddress = json["refundAddress"]; |
|
this.refundTel = json["refundTel"]; |
|
this.refundContact = json["refundContact"]; |
|
this.isAutoSendRefundAddress = json["isAutoSendRefundAddress"]; |
|
this.soldNum = json["soldNum"]; |
|
this.storeTemplateConfig = json["storeTemplateConfig"]; |
|
this.storeTable = json["storeTable"]; |
|
this.threshold = json["threshold"]; |
|
this.freePostAge = json["freePostAge"]; |
|
this.logisticsThreshold = json["logisticsThreshold"]; |
|
this.logisticsFreePostAge = json["logisticsFreePostAge"]; |
|
this.longitude = json["longitude"]; |
|
this.latitude = json["latitude"]; |
|
this.deliveryDistance = json["deliveryDistance"]; |
|
this.couponVO = json["couponVO"]; |
|
this.posType = |
|
json["posType"] != null ? PosType.fromJson(json["posType"]) : null; |
|
this.banners = json["banners"]; |
|
this.tips = json["tips"]; |
|
this.storeBrandImg = json["storeBrandImg"]; |
|
this.defaultPostAge = json["defaultPostAge"]; |
|
} |
|
|
|
Map<String, dynamic> toJson() { |
|
var map = <String, dynamic>{}; |
|
map["id"] = this.id; |
|
map["storeName"] = this.storeName; |
|
map["nickName"] = this.nickName; |
|
map["businessService"] = this.businessService; |
|
map["businessType"] = this.businessType; |
|
map["logo"] = this.logo; |
|
map["openStartTime"] = this.openStartTime; |
|
map["openEndTime"] = this.openEndTime; |
|
map["shipAddress"] = this.shipAddress; |
|
map["remark"] = this.remark; |
|
map["mobile"] = this.mobile; |
|
map["refundAddress"] = this.refundAddress; |
|
map["refundTel"] = this.refundTel; |
|
map["refundContact"] = this.refundContact; |
|
map["isAutoSendRefundAddress"] = this.isAutoSendRefundAddress; |
|
map["soldNum"] = this.soldNum; |
|
map["storeTemplateConfig"] = this.storeTemplateConfig; |
|
map["storeTable"] = this.storeTable; |
|
map["threshold"] = this.threshold; |
|
map["freePostAge"] = this.freePostAge; |
|
map["logisticsThreshold"] = this.logisticsThreshold; |
|
map["logisticsFreePostAge"] = this.logisticsFreePostAge; |
|
map["longitude"] = this.longitude; |
|
map["latitude"] = this.latitude; |
|
map["deliveryDistance"] = this.deliveryDistance; |
|
map["couponVO"] = this.couponVO; |
|
if (this.posType != null) { |
|
map["posType"] = this.posType.toJson(); |
|
} |
|
map["banners"] = this.banners; |
|
map["tips"] = this.tips; |
|
map["storeBrandImg"] = this.storeBrandImg; |
|
map["defaultPostAge"] = this.defaultPostAge; |
|
return map; |
|
} |
|
} |
|
|
|
/// desc : "零售商店" |
|
/// code : "RETAILSTORE" |
|
|
|
class PosType { |
|
String desc; |
|
String code; |
|
|
|
PosType({String desc, String code}) { |
|
this.desc = desc; |
|
this.code = code; |
|
} |
|
|
|
PosType.fromJson(dynamic json) { |
|
this.desc = json["desc"]; |
|
this.code = json["code"]; |
|
} |
|
|
|
Map<String, dynamic> toJson() { |
|
var map = <String, dynamic>{}; |
|
map["desc"] = this.desc; |
|
map["code"] = this.code; |
|
return map; |
|
} |
|
} |
|
|
|
/// addressId : null |
|
/// country : null |
|
/// countryId : null |
|
/// province : "湖北省" |
|
/// provinceId : null |
|
/// city : "武汉市" |
|
/// cityId : null |
|
/// district : "武昌区" |
|
/// districtId : null |
|
/// address : "楚河汉界" |
|
/// recName : null |
|
/// recMobile : null |
|
/// longitude : "114.344225" |
|
/// latitude : "30.554177" |
|
|
|
class AddressExt { |
|
dynamic addressId; |
|
dynamic country; |
|
dynamic countryId; |
|
String province; |
|
dynamic provinceId; |
|
String city; |
|
dynamic cityId; |
|
String district; |
|
dynamic districtId; |
|
String address; |
|
dynamic recName; |
|
dynamic recMobile; |
|
String longitude; |
|
String latitude; |
|
|
|
AddressExt( |
|
{dynamic addressId, |
|
dynamic country, |
|
dynamic countryId, |
|
String province, |
|
dynamic provinceId, |
|
String city, |
|
dynamic cityId, |
|
String district, |
|
dynamic districtId, |
|
String address, |
|
dynamic recName, |
|
dynamic recMobile, |
|
String longitude, |
|
String latitude}) { |
|
this.addressId = addressId; |
|
this.country = country; |
|
this.countryId = countryId; |
|
this.province = province; |
|
this.provinceId = provinceId; |
|
this.city = city; |
|
this.cityId = cityId; |
|
this.district = district; |
|
this.districtId = districtId; |
|
this.address = address; |
|
this.recName = recName; |
|
this.recMobile = recMobile; |
|
this.longitude = longitude; |
|
this.latitude = latitude; |
|
} |
|
|
|
AddressExt.fromJson(dynamic json) { |
|
this.addressId = json["addressId"]; |
|
this.country = json["country"]; |
|
this.countryId = json["countryId"]; |
|
this.province = json["province"]; |
|
this.provinceId = json["provinceId"]; |
|
this.city = json["city"]; |
|
this.cityId = json["cityId"]; |
|
this.district = json["district"]; |
|
this.districtId = json["districtId"]; |
|
this.address = json["address"]; |
|
this.recName = json["recName"]; |
|
this.recMobile = json["recMobile"]; |
|
this.longitude = json["longitude"]; |
|
this.latitude = json["latitude"]; |
|
} |
|
|
|
Map<String, dynamic> toJson() { |
|
var map = <String, dynamic>{}; |
|
map["addressId"] = this.addressId; |
|
map["country"] = this.country; |
|
map["countryId"] = this.countryId; |
|
map["province"] = this.province; |
|
map["provinceId"] = this.provinceId; |
|
map["city"] = this.city; |
|
map["cityId"] = this.cityId; |
|
map["district"] = this.district; |
|
map["districtId"] = this.districtId; |
|
map["address"] = this.address; |
|
map["recName"] = this.recName; |
|
map["recMobile"] = this.recMobile; |
|
map["longitude"] = this.longitude; |
|
map["latitude"] = this.latitude; |
|
return map; |
|
} |
|
} |
|
|
|
class CouponDTO { |
|
// "name": "超级满减", |
|
// "num": null, |
|
// "money": "20.00", |
|
// "receiveMoney": null |
|
|
|
String name; |
|
dynamic num; |
|
String money; |
|
dynamic receiveMoney; |
|
|
|
CouponDTO.fromJson(dynamic json) { |
|
name = json["name"]; |
|
num = json["num"]; |
|
money = json["money"]; |
|
receiveMoney = json["receiveMoney"]; |
|
} |
|
|
|
Map<String, dynamic> toJson() { |
|
var map = <String, dynamic>{}; |
|
map["name"] = name; |
|
map["num"] = num; |
|
map["money"] = money; |
|
map["receiveMoney"] = receiveMoney; |
|
return map; |
|
} |
|
}
|
|
|