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.

163 lines
4.3 KiB

4 years ago
/// id : "1401829783586734080"
/// createTime : "2021-06-07 17:14:00"
/// createUser : null
/// updateTime : "2021-06-07 17:14:00"
/// updateUser : "1401829783586734080"
/// mid : "1401831324632743936"
/// openid : "o7JOi4o7SDTuZjTrOylcPrMa2T2I"
/// nickname : "占永辉"
/// headimg : "https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eqY7LN8EUccm7f4lNpKLicEicwW6EeIpe8Sv61dqkKESnImJt1Xw7AxciajCGVdqbGdwUEia271TIcFVA/132"
/// balance : "0.00"
/// realRecharge : "0.00"
/// sex : "1"
/// status : true
/// onCredit : false
/// loginTime : "2021-07-08 00:11:08"
/// loginNum : 2
/// tenantCode : "1174"
/// source : 1
/// expendAmount : "0.00"
/// buyTimes : 0
/// lastBuyTime : null
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;
String get id => _id;
String get createTime => _createTime;
dynamic 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;
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}){
_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;
}
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"];
}
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;
return map;
}
}