123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- class NotificationListEntity {
- int total;
- List<NotificationListItem> rows;
- NotificationListEntity.fromJsonMap(Map<String, dynamic> map):
- total = map["total"],
- rows = List<NotificationListItem>.from(map["rows"].map((it) => NotificationListItem.fromJsonMap(it)));
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['total'] = total;
- data['rows'] = rows != null ?
- this.rows.map((v) => v.toJson()).toList()
- : null;
- return data;
- }
- }
- class NotificationListItem {
- String id;
- String name;
- String corporator;
- String telephone;
- String remarks;
- int isCertificated;
- String logoImg;
- int userNum;
- String createDate;
- bool currentTeamFlag;
- NotificationListItem.fromJsonMap(Map<String, dynamic> map):
- id = map["id"]??"",
- name = map["name"]??"",
- corporator = map["corporator"]??"",
- telephone = map["telephone"]??"",
- remarks = map["remarks"]??"无",
- isCertificated = map["isCertificated"]??0,
- logoImg = map["logoImg"]??"",
- userNum = map["userNum"]??0,
- createDate = map["createDate"]??"",
- currentTeamFlag = map["currentTeamFlag"]??false;
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['id'] = id;
- data['name'] = name;
- data['corporator'] = corporator;
- data['telephone'] = telephone;
- data['remarks'] = remarks;
- data['isCertificated'] = isCertificated;
- data['logoImg'] = logoImg;
- return data;
- }
- }
|