|
|
|
/// id : "1463790611994771456"
|
|
|
|
/// createTime : "2021-11-25 16:44:12"
|
|
|
|
/// createUser : "1"
|
|
|
|
/// updateTime : "2021-11-25 16:45:55"
|
|
|
|
/// updateUser : "1"
|
|
|
|
/// name : "一心回乡"
|
|
|
|
/// introduce : "22"
|
|
|
|
/// coverImg : "https://pos.upload.gznl.top/0000/2021/11/899b578b-f594-42f7-91e1-cebc5dbc39da.webp"
|
|
|
|
/// bannerImg : "https://pos.upload.gznl.top/0000/2021/11/7a41ebe2-d3b1-44ea-9cda-2e952b58d54c.webp"
|
|
|
|
/// sort : 0
|
|
|
|
/// isDelete : 0
|
|
|
|
/// tenantCode : "admin"
|
|
|
|
|
|
|
|
class HeadlinesList {
|
|
|
|
HeadlinesList({
|
|
|
|
String id,
|
|
|
|
String createTime,
|
|
|
|
String createUser,
|
|
|
|
String updateTime,
|
|
|
|
String updateUser,
|
|
|
|
String name,
|
|
|
|
String introduce,
|
|
|
|
String coverImg,
|
|
|
|
String bannerImg,
|
|
|
|
int sort,
|
|
|
|
int isDelete,
|
|
|
|
String tenantCode,}){
|
|
|
|
_id = id;
|
|
|
|
_createTime = createTime;
|
|
|
|
_createUser = createUser;
|
|
|
|
_updateTime = updateTime;
|
|
|
|
_updateUser = updateUser;
|
|
|
|
_name = name;
|
|
|
|
_introduce = introduce;
|
|
|
|
_coverImg = coverImg;
|
|
|
|
_bannerImg = bannerImg;
|
|
|
|
_sort = sort;
|
|
|
|
_isDelete = isDelete;
|
|
|
|
_tenantCode = tenantCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
HeadlinesList.fromJson(dynamic json) {
|
|
|
|
_id = json['id'];
|
|
|
|
_createTime = json['createTime'];
|
|
|
|
_createUser = json['createUser'];
|
|
|
|
_updateTime = json['updateTime'];
|
|
|
|
_updateUser = json['updateUser'];
|
|
|
|
_name = json['name'];
|
|
|
|
_introduce = json['introduce'];
|
|
|
|
_coverImg = json['coverImg'];
|
|
|
|
_bannerImg = json['bannerImg'];
|
|
|
|
_sort = json['sort'];
|
|
|
|
_isDelete = json['isDelete'];
|
|
|
|
_tenantCode = json['tenantCode'];
|
|
|
|
}
|
|
|
|
String _id;
|
|
|
|
String _createTime;
|
|
|
|
String _createUser;
|
|
|
|
String _updateTime;
|
|
|
|
String _updateUser;
|
|
|
|
String _name;
|
|
|
|
String _introduce;
|
|
|
|
String _coverImg;
|
|
|
|
String _bannerImg;
|
|
|
|
int _sort;
|
|
|
|
int _isDelete;
|
|
|
|
String _tenantCode;
|
|
|
|
|
|
|
|
String get id => _id;
|
|
|
|
String get createTime => _createTime;
|
|
|
|
String get createUser => _createUser;
|
|
|
|
String get updateTime => _updateTime;
|
|
|
|
String get updateUser => _updateUser;
|
|
|
|
String get name => _name;
|
|
|
|
String get introduce => _introduce;
|
|
|
|
String get coverImg => _coverImg;
|
|
|
|
String get bannerImg => _bannerImg;
|
|
|
|
int get sort => _sort;
|
|
|
|
int get isDelete => _isDelete;
|
|
|
|
String get tenantCode => _tenantCode;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['id'] = _id;
|
|
|
|
map['createTime'] = _createTime;
|
|
|
|
map['createUser'] = _createUser;
|
|
|
|
map['updateTime'] = _updateTime;
|
|
|
|
map['updateUser'] = _updateUser;
|
|
|
|
map['name'] = _name;
|
|
|
|
map['introduce'] = _introduce;
|
|
|
|
map['coverImg'] = _coverImg;
|
|
|
|
map['bannerImg'] = _bannerImg;
|
|
|
|
map['sort'] = _sort;
|
|
|
|
map['isDelete'] = _isDelete;
|
|
|
|
map['tenantCode'] = _tenantCode;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|