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.
 
 
 
 
 
 

183 lines
4.8 KiB

/// id : "1412664861531308032"
/// createTime : "2021-07-07 14:48:44"
/// createUser : "1405494095400402944"
/// updateTime : "2021-07-07 14:48:44"
/// updateUser : "1405494095400402944"
/// mid : "1405494095400402944"
/// openid : ""
/// nickname : ""
/// headimg : ""
/// balance : "0.00"
/// realRecharge : "0.00"
/// sex : "0"
/// status : true
/// onCredit : false
/// loginTime : "2021-07-12 17:45:35"
/// loginNum : 33
/// tenantCode : "1166"
/// source : 1
/// expendAmount : "0.00"
/// buyTimes : 0
/// lastBuyTime : null
/// storeName : "百年川椒火锅店(光谷店)"
/// storeLogo : "https://pos.upload.gznl.top/1166/2021/07/4165050b-1b26-4303-9809-6f3f8e91de52.jpg"
class VipCard {
String _id;
String _createTime;
String _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;
String _storeId;
String _storeName;
String _storeLogo;
String get id => _id;
String get createTime => _createTime;
String get createUser => _createUser;
String get updateTime => _updateTime;
String get updateUser => _updateUser;
String get mid => _mid;
String get openid => _openid;
String get nickname => _nickname;
String get headimg => _headimg;
String get balance => _balance;
String get realRecharge => _realRecharge;
String get sex => _sex;
bool get status => _status;
bool get onCredit => _onCredit;
String get loginTime => _loginTime;
int get loginNum => _loginNum;
String get tenantCode => _tenantCode;
int get source => _source;
String get expendAmount => _expendAmount;
int get buyTimes => _buyTimes;
dynamic get lastBuyTime => _lastBuyTime;
String get storeName => _storeName;
String get storeId => _storeId;
String get storeLogo => _storeLogo;
VipCard({
String id,
String createTime,
String 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,
String storeName,
String storeId,
String storeLogo}){
_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;
_storeId = storeId;
_storeName = storeName;
_storeLogo = storeLogo;
}
VipCard.fromJson(dynamic json) {
_id = json["id"];
_createTime = json["createTime"];
_createUser = json["createUser"];
_updateTime = json["updateTime"];
_updateUser = json["updateUser"];
_mid = json["mid"];
_openid = json["openid"];
_nickname = json["nickname"];
_headimg = json["headimg"];
_balance = json["balance"];
_realRecharge = json["realRecharge"];
_sex = json["sex"];
_status = json["status"];
_onCredit = json["onCredit"];
_loginTime = json["loginTime"];
_loginNum = json["loginNum"];
_tenantCode = json["tenantCode"];
_source = json["source"];
_expendAmount = json["expendAmount"];
_buyTimes = json["buyTimes"];
_lastBuyTime = json["lastBuyTime"];
_storeId = json["storeId"];
_storeName = json["storeName"];
_storeLogo = json["storeLogo"];
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
map["id"] = _id;
map["createTime"] = _createTime;
map["createUser"] = _createUser;
map["updateTime"] = _updateTime;
map["updateUser"] = _updateUser;
map["mid"] = _mid;
map["openid"] = _openid;
map["nickname"] = _nickname;
map["headimg"] = _headimg;
map["balance"] = _balance;
map["realRecharge"] = _realRecharge;
map["sex"] = _sex;
map["status"] = _status;
map["onCredit"] = _onCredit;
map["loginTime"] = _loginTime;
map["loginNum"] = _loginNum;
map["tenantCode"] = _tenantCode;
map["source"] = _source;
map["expendAmount"] = _expendAmount;
map["buyTimes"] = _buyTimes;
map["lastBuyTime"] = _lastBuyTime;
map["storeId"] = _storeId;
map["storeName"] = _storeName;
map["storeLogo"] = _storeLogo;
return map;
}
}