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.
86 lines
2.0 KiB
86 lines
2.0 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 _rankContent;
|
||
|
String _rankImg;
|
||
|
String _rankName;
|
||
|
int _rankOrigin;
|
||
|
bool _status;
|
||
|
String _updateTime;
|
||
|
String _updateUser;
|
||
|
|
||
|
String get createTime => _createTime;
|
||
|
String get createUser => _createUser;
|
||
|
String get id => _id;
|
||
|
String get rankContent => _rankContent;
|
||
|
String get rankImg => _rankImg;
|
||
|
String get rankName => _rankName;
|
||
|
int get rankOrigin => _rankOrigin;
|
||
|
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,
|
||
|
bool status,
|
||
|
String updateTime,
|
||
|
String updateUser}){
|
||
|
_createTime = createTime;
|
||
|
_createUser = createUser;
|
||
|
_id = id;
|
||
|
_rankContent = rankContent;
|
||
|
_rankImg = rankImg;
|
||
|
_rankName = rankName;
|
||
|
_rankOrigin = rankOrigin;
|
||
|
_status = status;
|
||
|
_updateTime = updateTime;
|
||
|
_updateUser = updateUser;
|
||
|
}
|
||
|
|
||
|
Rank.fromJson(dynamic json) {
|
||
|
_createTime = json["createTime"];
|
||
|
_createUser = json["createUser"];
|
||
|
_id = json["id"];
|
||
|
_rankContent = json["rankContent"];
|
||
|
_rankImg = json["rankImg"];
|
||
|
_rankName = json["rankName"];
|
||
|
_rankOrigin = json["rankOrigin"];
|
||
|
_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["rankContent"] = _rankContent;
|
||
|
map["rankImg"] = _rankImg;
|
||
|
map["rankName"] = _rankName;
|
||
|
map["rankOrigin"] = _rankOrigin;
|
||
|
map["status"] = _status;
|
||
|
map["updateTime"] = _updateTime;
|
||
|
map["updateUser"] = _updateUser;
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
}
|