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.

97 lines
2.3 KiB

4 years ago
/// createTime : ""
/// createUser : 0
/// id : 0
/// rankContent : ""
/// rankImg : ""
/// rankName : ""
/// rankOrigin : 0
/// status : true
/// updateTime : ""
/// updateUser : 0
class Rank {
String _createTime;
String _createUser;
String _id;
String _price;
4 years ago
String _rankContent;
String _rankImg;
String _rankName;
int _rankOrigin;
int _level;
4 years ago
bool _status;
String _updateTime;
String _updateUser;
String get createTime => _createTime;
String get createUser => _createUser;
String get id => _id;
String get price => _price;
4 years ago
String get rankContent => _rankContent;
String get rankImg => _rankImg;
String get rankName => _rankName;
int get rankOrigin => _rankOrigin;
int get level => _level;
4 years ago
bool get status => _status;
String get updateTime => _updateTime;
String get updateUser => _updateUser;
Rank({
String createTime,
String createUser,
String id,
String rankContent,
String rankImg,
String rankName,
int rankOrigin,
int level,
bool status,
4 years ago
String updateTime,
String updateUser}){
_createTime = createTime;
_createUser = createUser;
_id = id;
_price = price;
4 years ago
_rankContent = rankContent;
_rankImg = rankImg;
_rankName = rankName;
_rankOrigin = rankOrigin;
_level = level;
4 years ago
_status = status;
_updateTime = updateTime;
_updateUser = updateUser;
}
Rank.fromJson(dynamic json) {
_createTime = json["createTime"];
_createUser = json["createUser"];
_id = json["id"];
_price = json["price"];
4 years ago
_rankContent = json["rankContent"];
_rankImg = json["rankImg"];
_rankName = json["rankName"];
_rankOrigin = json["rankOrigin"];
_level = json["level"];
4 years ago
_status = json["status"];
_updateTime = json["updateTime"];
_updateUser = json["updateUser"];
}
Map<String, dynamic> toJson() {
var map = <String, dynamic>{};
map["createTime"] = _createTime;
map["createUser"] = _createUser;
map["id"] = _id;
map["price"] = _price;
4 years ago
map["rankContent"] = _rankContent;
map["rankImg"] = _rankImg;
map["rankName"] = _rankName;
map["rankOrigin"] = _rankOrigin;
map["level"] = _level;
4 years ago
map["status"] = _status;
map["updateTime"] = _updateTime;
map["updateUser"] = _updateUser;
return map;
}
}