class NotificationListEntity { int total; List rows; NotificationListEntity.fromJsonMap(Map map): total = map["total"], rows = List.from(map["rows"].map((it) => NotificationListItem.fromJsonMap(it))); Map toJson() { final Map data = new Map(); 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 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 toJson() { final Map data = new Map(); data['id'] = id; data['name'] = name; data['corporator'] = corporator; data['telephone'] = telephone; data['remarks'] = remarks; data['isCertificated'] = isCertificated; data['logoImg'] = logoImg; return data; } }