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

4 years ago
/// 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 : ""
4 years ago
/// balance : "0.00"
/// realRecharge : "0.00"
4 years ago
/// sex : "0"
4 years ago
/// status : true
/// onCredit : false
4 years ago
/// loginTime : "2021-07-12 17:45:35"
/// loginNum : 33
/// tenantCode : "1166"
4 years ago
/// source : 1
/// expendAmount : "0.00"
/// buyTimes : 0
/// lastBuyTime : null
4 years ago
/// storeName : "百年川椒火锅店(光谷店)"
/// storeLogo : "https://pos.upload.gznl.top/1166/2021/07/4165050b-1b26-4303-9809-6f3f8e91de52.jpg"
4 years ago
class VipCard {
String _id;
String _createTime;
4 years ago
String _createUser;
4 years ago
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;
4 years ago
String _storeId;
4 years ago
String _storeName;
String _storeLogo;
4 years ago
String get id => _id;
String get createTime => _createTime;
4 years ago
String get createUser => _createUser;
4 years ago
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;
4 years ago
String get storeName => _storeName;
4 years ago
String get storeId => _storeId;
4 years ago
String get storeLogo => _storeLogo;
4 years ago
VipCard({
String id,
String createTime,
4 years ago
String createUser,
4 years ago
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,
4 years ago
dynamic lastBuyTime,
4 years ago
String storeName,
String storeId,
4 years ago
String storeLogo}){
4 years ago
_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;
4 years ago
_storeId = storeId;
4 years ago
_storeName = storeName;
_storeLogo = storeLogo;
4 years ago
}
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"];
4 years ago
_storeId = json["storeId"];
4 years ago
_storeName = json["storeName"];
_storeLogo = json["storeLogo"];
4 years ago
}
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;
4 years ago
map["storeId"] = _storeId;
4 years ago
map["storeName"] = _storeName;
map["storeLogo"] = _storeLogo;
4 years ago
return map;
}
}