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