parent
39260008a0
commit
15089938d6
@ -1,23 +1,32 @@
|
|||||||
class MessageCenterModel {
|
class MessageCenterModel {
|
||||||
|
String commentTitle;
|
||||||
int sysCount;
|
int sysCount;
|
||||||
String sysTitle;
|
String sysTitle;
|
||||||
|
int commentCount;
|
||||||
|
|
||||||
MessageCenterModel.zero() {
|
MessageCenterModel.zero() {
|
||||||
|
commentTitle = '';
|
||||||
sysCount = 0;
|
sysCount = 0;
|
||||||
sysTitle = '';
|
sysTitle = '';
|
||||||
|
commentCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageCenterModel({this.sysCount, this.sysTitle});
|
MessageCenterModel(
|
||||||
|
{this.commentTitle, this.sysCount, this.sysTitle, this.commentCount});
|
||||||
|
|
||||||
MessageCenterModel.fromJson(Map<String, dynamic> json) {
|
MessageCenterModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
commentTitle = json['commentTitle'];
|
||||||
sysCount = json['sysCount'];
|
sysCount = json['sysCount'];
|
||||||
sysTitle = json['sysTitle'];
|
sysTitle = json['sysTitle'];
|
||||||
|
commentCount = json['commentCount'];
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['commentTitle'] = this.commentTitle;
|
||||||
data['sysCount'] = this.sysCount;
|
data['sysCount'] = this.sysCount;
|
||||||
data['sysTitle'] = this.sysTitle;
|
data['sysTitle'] = this.sysTitle;
|
||||||
|
data['commentCount'] = this.commentCount;
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue