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.

132 lines
4.6 KiB

3 years ago
import 'StoreListBean.dart';
/// id : "1393457755217461248"
/// createTime : "2021-05-15 14:46:33"
/// createUser : null
/// updateTime : "2021-05-15 14:46:33"
/// updateUser : "1393457755217461248"
/// mid : "1394132265126068224"
/// openid : "o3DjK5P66kDzkeW3biAx1LQSMLn4"
/// nickname : "˹<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
/// headimg : "https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83erTf2Lbo2ztbicMtreEdr7xtrnvtTL5Qr31cicZVoKicdN3EEej13sRMLxLlq3qHThI4V8Pmau5Rps8A/132"
4 years ago
/// balance : "0.00"
/// realRecharge : "0.00"
4 years ago
/// sex : "0"
4 years ago
/// status : true
/// onCredit : false
3 years ago
/// loginTime : "2021-05-20 13:48:03"
/// loginNum : 9
/// tenantCode : "1180"
4 years ago
/// source : 1
/// expendAmount : "0.00"
/// buyTimes : 0
/// lastBuyTime : null
3 years ago
/// vip_no : null
/// expireTime : null
/// integral : 0
/// level : 1
/// vipRegStore : null
/// tenantName : "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
/// tenantLogo : ""
/// storeList : [{"id":"1381798825072525312","createTime":"2021-04-13 10:38:07","createUser":"1","updateTime":"2021-06-12 21:20:22","updateUser":"1381798824988639232","tenantCode":"1\nI/flutter ( 6658): 180","useErp":false,"openStartTime":"09:30:00","openEndTime":"18:30:00","storeName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","nickName":"","logo":"https://pos.upload.gznl.top/1180/2021/07/574aaeff-df3c-451a-b34f-67f9b3552427.png","shipAddress":"<EFBFBD>Ϻ<EFBFBD><EFBFBD>г<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ũ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>繫·833Ū1-22<EFBFBD><EFBFBD>C2-C3","remark":"","mobile":"13554204268","longitude":"121.4789730000","latitude":"31.7092220000","refundAddress":null,"refundTel":null,"refundContact":null,"isAutoSendRefundAddress":1,"province":"<EFBFBD>Ϻ<EFBFBD><EFBFBD><EFBFBD>","city":"<EFBFBD>Ϻ<EFBFBD><EFBFBD><EFBFBD>","district":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","address":"<EFBFBD>Ϻ<EFBFBD><EFBFBD>г<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD>򶫷繫·833<EFBFBD>Ŷ<EFBFBD><EFBFBD><EFBFBD>ũ<EFBFBD><EFBFBD>C2","headName":"","headMobile":"18672789329","businessService":"WIFI,<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD><EFBFBD>","businessType":"<EFBFBD><EFBFBD>","deliveryInfo":null,"miniParam":null,"is_delete":0,"posType":{"desc":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","code":"FASTSTORE"}}]
4 years ago
class VipCard {
3 years ago
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;
int level;
dynamic vipRegStore;
String tenantName;
String tenantLogo;
List<StoreListBean> storeList;
4 years ago
3 years ago
static VipCard fromMap(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 = List()..addAll(
(map['storeList'] as List ?? []).map((o) => StoreListBean.fromMap(o))
);
return vipCardBean;
4 years ago
}
3 years ago
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,
};
4 years ago
}