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.
 
 
 
 
 
 

117 lines
2.9 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 _color;
String _textColor;
int _originScore;
int _demotionScore;
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;
String get color => _color;
String get textColor => _textColor;
int get originScore => _originScore;
int get demotionScore => _demotionScore;
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;
_color = color;
_textColor = textColor;
_originScore = originScore;
_demotionScore = demotionScore;
}
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"];
_color = json["color"];
_textColor = json["textColor"];
_originScore = json["originScore"];
_demotionScore = json["demotionScore"];
}
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;
map["color"] = _color;
map["textColor"] = _textColor;
map["originScore"] = _originScore;
map["demotionScore"] = _demotionScore;
return map;
}
}