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.
 
 
 
 
 
 

237 lines
6.7 KiB

class VipCard {
String? id;
String? createTime;
dynamic createUser;
String? updateTime;
String? updateUser;
String? mid;
String? openid;
String? nickname;
String? headimg;
String? balance;
String? realRecharge;
String? sex;
bool? status;
bool? onCredit;
String? loginTime;
int? loginNum;
String? tenantCode;
int? source;
String? expendAmount;
int? buyTimes;
dynamic lastBuyTime;
dynamic vipNo;
dynamic expireTime;
int integral = 0;
int level = 0;
dynamic vipRegStore;
String? tenantName;
String? tenantLogo;
List<StoreListBean?>? storeList;
static VipCard? fromJson(Map<String, dynamic>? map) {
if (map == null) return null;
VipCard vipCardBean = VipCard();
vipCardBean.id = map['id'];
vipCardBean.createTime = map['createTime'];
vipCardBean.createUser = map['createUser'];
vipCardBean.updateTime = map['updateTime'];
vipCardBean.updateUser = map['updateUser'];
vipCardBean.mid = map['mid'];
vipCardBean.openid = map['openid'];
vipCardBean.nickname = map['nickname'];
vipCardBean.headimg = map['headimg'];
vipCardBean.balance = map['balance'];
vipCardBean.realRecharge = map['realRecharge'];
vipCardBean.sex = map['sex'];
vipCardBean.status = map['status'];
vipCardBean.onCredit = map['onCredit'];
vipCardBean.loginTime = map['loginTime'];
vipCardBean.loginNum = map['loginNum'];
vipCardBean.tenantCode = map['tenantCode'];
vipCardBean.source = map['source'];
vipCardBean.expendAmount = map['expendAmount'];
vipCardBean.buyTimes = map['buyTimes'];
vipCardBean.lastBuyTime = map['lastBuyTime'];
vipCardBean.vipNo = map['vip_no'];
vipCardBean.expireTime = map['expireTime'];
vipCardBean.integral = map['integral'];
vipCardBean.level = map['level'];
vipCardBean.vipRegStore = map['vipRegStore'];
vipCardBean.tenantName = map['tenantName'];
vipCardBean.tenantLogo = map['tenantLogo'];
vipCardBean.storeList = []..addAll(
(map['storeList'] as List).map((o) => StoreListBean.fromMap(o))
);
return vipCardBean;
}
Map toJson() => {
"id": id,
"createTime": createTime,
"createUser": createUser,
"updateTime": updateTime,
"updateUser": updateUser,
"mid": mid,
"openid": openid,
"nickname": nickname,
"headimg": headimg,
"balance": balance,
"realRecharge": realRecharge,
"sex": sex,
"status": status,
"onCredit": onCredit,
"loginTime": loginTime,
"loginNum": loginNum,
"tenantCode": tenantCode,
"source": source,
"expendAmount": expendAmount,
"buyTimes": buyTimes,
"lastBuyTime": lastBuyTime,
"vip_no": vipNo,
"expireTime": expireTime,
"integral": integral,
"level": level,
"vipRegStore": vipRegStore,
"tenantName": tenantName,
"tenantLogo": tenantLogo,
"storeList": storeList,
};
}
class StoreListBean {
String? id;
String? createTime;
String? createUser;
String? updateTime;
String? updateUser;
String? tenantCode;
bool? useErp;
String? openStartTime;
String? openEndTime;
String? storeName;
String? nickName;
String? logo;
String? shipAddress;
String? remark;
String? mobile;
String? longitude;
String? latitude;
dynamic refundAddress;
dynamic refundTel;
dynamic refundContact;
int? isAutoSendRefundAddress;
String? province;
String? city;
String? district;
String? address;
String? headName;
String? headMobile;
String? businessService;
String? businessType;
dynamic deliveryInfo;
dynamic miniParam;
dynamic distance;
int? isDelete;
PosTypeBean? posType;
static StoreListBean? fromMap(Map<String?, dynamic>? map) {
if (map == null) return null;
StoreListBean storeListBean = StoreListBean();
storeListBean.id = map['id'];
storeListBean.createTime = map['createTime'];
storeListBean.createUser = map['createUser'];
storeListBean.updateTime = map['updateTime'];
storeListBean.updateUser = map['updateUser'];
storeListBean.tenantCode = map['tenantCode'];
storeListBean.useErp = map['useErp'];
storeListBean.openStartTime = map['openStartTime'];
storeListBean.openEndTime = map['openEndTime'];
storeListBean.storeName = map['storeName'];
storeListBean.nickName = map['nickName'];
storeListBean.logo = map['logo'];
storeListBean.shipAddress = map['shipAddress'];
storeListBean.remark = map['remark'];
storeListBean.mobile = map['mobile'];
storeListBean.longitude = map['longitude'];
storeListBean.latitude = map['latitude'];
storeListBean.refundAddress = map['refundAddress'];
storeListBean.refundTel = map['refundTel'];
storeListBean.refundContact = map['refundContact'];
storeListBean.isAutoSendRefundAddress = map['isAutoSendRefundAddress'];
storeListBean.province = map['province'];
storeListBean.city = map['city'];
storeListBean.district = map['district'];
storeListBean.address = map['address'];
storeListBean.headName = map['headName'];
storeListBean.headMobile = map['headMobile'];
storeListBean.businessService = map['businessService'];
storeListBean.businessType = map['businessType'];
storeListBean.deliveryInfo = map['deliveryInfo'];
storeListBean.miniParam = map['miniParam'];
storeListBean.distance = map['distance'];
storeListBean.isDelete = map['is_delete'];
storeListBean.posType = PosTypeBean.fromMap(map['posType']);
return storeListBean;
}
Map toJson() => {
"id": id,
"createTime": createTime,
"createUser": createUser,
"updateTime": updateTime,
"updateUser": updateUser,
"tenantCode": tenantCode,
"useErp": useErp,
"openStartTime": openStartTime,
"openEndTime": openEndTime,
"storeName": storeName,
"nickName": nickName,
"logo": logo,
"shipAddress": shipAddress,
"remark": remark,
"mobile": mobile,
"longitude": longitude,
"latitude": latitude,
"refundAddress": refundAddress,
"refundTel": refundTel,
"refundContact": refundContact,
"isAutoSendRefundAddress": isAutoSendRefundAddress,
"province": province,
"city": city,
"district": district,
"address": address,
"headName": headName,
"headMobile": headMobile,
"businessService": businessService,
"businessType": businessType,
"deliveryInfo": deliveryInfo,
"miniParam": miniParam,
"distance": distance,
"is_delete": isDelete,
"posType": posType,
};
}
/// code : "NORMALSTORE"
/// desc : ""
class PosTypeBean {
String? code;
String? desc;
static PosTypeBean? fromMap(Map<String, dynamic>? map) {
if (map == null) return null;
PosTypeBean posTypeBean = PosTypeBean();
posTypeBean.code = map['code'];
posTypeBean.desc = map['desc'];
return posTypeBean;
}
Map toJson() => {
"code": code,
"desc": desc,
};
}