problem_information_list_entity.dart 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. class ProblemInformationList {
  2. int? code;
  3. String? msg;
  4. List<Data>? data;
  5. ProblemInformationList({this.code, this.msg, this.data});
  6. ProblemInformationList.fromJson(Map<String, dynamic> json) {
  7. code = json['code'];
  8. msg = json['msg'];
  9. if (json['data'] != null) {
  10. data = <Data>[];
  11. json['data'].forEach((v) {
  12. data!.add(new Data.fromJson(v));
  13. });
  14. }
  15. }
  16. Map<String, dynamic> toJson() {
  17. final Map<String, dynamic> data = new Map<String, dynamic>();
  18. data['code'] = this.code;
  19. data['msg'] = this.msg;
  20. if (this.data != null) {
  21. data['data'] = this.data!.map((v) => v.toJson()).toList();
  22. }
  23. return data;
  24. }
  25. }
  26. class Data {
  27. String? id;
  28. int? type;
  29. String? alarmContent;
  30. String? reportedBy;
  31. Null? videoCode;
  32. String? reportingTime;
  33. Null? reportingTimeStr;
  34. Null? confirmedBy;
  35. Null? confirmationTime;
  36. String? assetCode;
  37. int? state;
  38. String? parentId;
  39. Null? handleBy;
  40. Null? handleDate;
  41. Null? projectName;
  42. Null? projectCode;
  43. String? alarmId;
  44. Null? tempMeasures;
  45. Null? planDate;
  46. String? appointProcessor;
  47. Null? tempVoiceUrl;
  48. Null? tempDate;
  49. Null? voiceUrl;
  50. Null? measures;
  51. Null? tempProcessor;
  52. Null? verifyBy;
  53. Null? verifyOpinion;
  54. Null? verifyDate;
  55. int? verifyType;
  56. Null? checkFacilitiesName;
  57. Null? checkType;
  58. Null? checkPersonnel;
  59. Null? postPost;
  60. Null? problemInfoDetailsList;
  61. Null? procInstId;
  62. Null? submitTime;
  63. Null? completeTime;
  64. Null? auditUsers;
  65. Null? nextAuditUser;
  66. Null? status;
  67. Null? tempProblemInfoDetailsList;
  68. Null? finishProblemInfoDetailsList;
  69. Null? repeatPersonInfoList;
  70. String? titleStr;
  71. String? locationName;
  72. Null? messageBox;
  73. Data(
  74. {this.id,
  75. this.type,
  76. this.alarmContent,
  77. this.reportedBy,
  78. this.videoCode,
  79. this.reportingTime,
  80. this.reportingTimeStr,
  81. this.confirmedBy,
  82. this.confirmationTime,
  83. this.assetCode,
  84. this.state,
  85. this.parentId,
  86. this.handleBy,
  87. this.handleDate,
  88. this.projectName,
  89. this.projectCode,
  90. this.alarmId,
  91. this.tempMeasures,
  92. this.planDate,
  93. this.appointProcessor,
  94. this.tempVoiceUrl,
  95. this.tempDate,
  96. this.voiceUrl,
  97. this.measures,
  98. this.tempProcessor,
  99. this.verifyBy,
  100. this.verifyOpinion,
  101. this.verifyDate,
  102. this.verifyType,
  103. this.checkFacilitiesName,
  104. this.checkType,
  105. this.checkPersonnel,
  106. this.postPost,
  107. this.problemInfoDetailsList,
  108. this.procInstId,
  109. this.submitTime,
  110. this.completeTime,
  111. this.auditUsers,
  112. this.nextAuditUser,
  113. this.status,
  114. this.tempProblemInfoDetailsList,
  115. this.finishProblemInfoDetailsList,
  116. this.repeatPersonInfoList,
  117. this.titleStr,
  118. this.locationName,
  119. this.messageBox});
  120. Data.fromJson(Map<String, dynamic> json) {
  121. id = json['id'];
  122. type = json['type'];
  123. alarmContent = json['alarmContent'];
  124. reportedBy = json['reportedBy'];
  125. videoCode = json['videoCode'];
  126. reportingTime = json['reportingTime'];
  127. reportingTimeStr = json['reportingTimeStr'];
  128. confirmedBy = json['confirmedBy'];
  129. confirmationTime = json['confirmationTime'];
  130. assetCode = json['assetCode'];
  131. state = json['state'];
  132. parentId = json['parentId'];
  133. handleBy = json['handleBy'];
  134. handleDate = json['handleDate'];
  135. projectName = json['projectName'];
  136. projectCode = json['projectCode'];
  137. alarmId = json['alarmId'];
  138. tempMeasures = json['tempMeasures'];
  139. planDate = json['planDate'];
  140. appointProcessor = json['appointProcessor'];
  141. tempVoiceUrl = json['tempVoiceUrl'];
  142. tempDate = json['tempDate'];
  143. voiceUrl = json['voiceUrl'];
  144. measures = json['measures'];
  145. tempProcessor = json['tempProcessor'];
  146. verifyBy = json['verifyBy'];
  147. verifyOpinion = json['verifyOpinion'];
  148. verifyDate = json['verifyDate'];
  149. verifyType = json['verifyType'];
  150. checkFacilitiesName = json['checkFacilitiesName'];
  151. checkType = json['checkType'];
  152. checkPersonnel = json['checkPersonnel'];
  153. postPost = json['postPost'];
  154. problemInfoDetailsList = json['problemInfoDetailsList'];
  155. procInstId = json['procInstId'];
  156. submitTime = json['submitTime'];
  157. completeTime = json['completeTime'];
  158. auditUsers = json['auditUsers'];
  159. nextAuditUser = json['nextAuditUser'];
  160. status = json['status'];
  161. tempProblemInfoDetailsList = json['tempProblemInfoDetailsList'];
  162. finishProblemInfoDetailsList = json['finishProblemInfoDetailsList'];
  163. repeatPersonInfoList = json['repeatPersonInfoList'];
  164. titleStr = json['titleStr'];
  165. locationName = json['locationName'];
  166. messageBox = json['messageBox'];
  167. }
  168. Map<String, dynamic> toJson() {
  169. final Map<String, dynamic> data = new Map<String, dynamic>();
  170. data['id'] = this.id;
  171. data['type'] = this.type;
  172. data['alarmContent'] = this.alarmContent;
  173. data['reportedBy'] = this.reportedBy;
  174. data['videoCode'] = this.videoCode;
  175. data['reportingTime'] = this.reportingTime;
  176. data['reportingTimeStr'] = this.reportingTimeStr;
  177. data['confirmedBy'] = this.confirmedBy;
  178. data['confirmationTime'] = this.confirmationTime;
  179. data['assetCode'] = this.assetCode;
  180. data['state'] = this.state;
  181. data['parentId'] = this.parentId;
  182. data['handleBy'] = this.handleBy;
  183. data['handleDate'] = this.handleDate;
  184. data['projectName'] = this.projectName;
  185. data['projectCode'] = this.projectCode;
  186. data['alarmId'] = this.alarmId;
  187. data['tempMeasures'] = this.tempMeasures;
  188. data['planDate'] = this.planDate;
  189. data['appointProcessor'] = this.appointProcessor;
  190. data['tempVoiceUrl'] = this.tempVoiceUrl;
  191. data['tempDate'] = this.tempDate;
  192. data['voiceUrl'] = this.voiceUrl;
  193. data['measures'] = this.measures;
  194. data['tempProcessor'] = this.tempProcessor;
  195. data['verifyBy'] = this.verifyBy;
  196. data['verifyOpinion'] = this.verifyOpinion;
  197. data['verifyDate'] = this.verifyDate;
  198. data['verifyType'] = this.verifyType;
  199. data['checkFacilitiesName'] = this.checkFacilitiesName;
  200. data['checkType'] = this.checkType;
  201. data['checkPersonnel'] = this.checkPersonnel;
  202. data['postPost'] = this.postPost;
  203. data['problemInfoDetailsList'] = this.problemInfoDetailsList;
  204. data['procInstId'] = this.procInstId;
  205. data['submitTime'] = this.submitTime;
  206. data['completeTime'] = this.completeTime;
  207. data['auditUsers'] = this.auditUsers;
  208. data['nextAuditUser'] = this.nextAuditUser;
  209. data['status'] = this.status;
  210. data['tempProblemInfoDetailsList'] = this.tempProblemInfoDetailsList;
  211. data['finishProblemInfoDetailsList'] = this.finishProblemInfoDetailsList;
  212. data['repeatPersonInfoList'] = this.repeatPersonInfoList;
  213. data['titleStr'] = this.titleStr;
  214. data['locationName'] = this.locationName;
  215. data['messageBox'] = this.messageBox;
  216. return data;
  217. }
  218. }