maint_job_detail_response.dart 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. import 'ImgVO.dart';
  2. class MaintJobDetailResponse {
  3. int? code;
  4. MaintJobDetailData? data;
  5. String? msg;
  6. MaintJobDetailResponse({this.code, this.data, this.msg});
  7. MaintJobDetailResponse.fromJson(Map<String, dynamic> json) {
  8. code = json['code'];
  9. data = json['data'] != null ? new MaintJobDetailData.fromJson(json['data']) : null;
  10. msg = json['msg'];
  11. }
  12. Map<String, dynamic> toJson() {
  13. final Map<String, dynamic> data = new Map<String, dynamic>();
  14. data['code'] = this.code;
  15. if (this.data != null) {
  16. data['data'] = this.data!.toJson();
  17. }
  18. data['msg'] = this.msg;
  19. return data;
  20. }
  21. }
  22. class MaintJobDetailData {
  23. int? id;
  24. String? jobName;
  25. String? jobNum;
  26. String? planName;
  27. String? planNum;
  28. int? status;
  29. String? startTime;
  30. String? endTime;
  31. int? cycleType;
  32. String? planRemarks;
  33. String? closeReason;
  34. String? closePerson;
  35. String? closeTime;
  36. List<FileUrls>? fileUrls;
  37. String? creator;
  38. String? itemsList;
  39. List<MaintEquipmentVOList>? maintEquipmentVOList;
  40. List<Logs>? logs;
  41. String? customer;
  42. String? channel;
  43. int? prodCount;
  44. String? maintStaffName;
  45. String? finishTime;
  46. @override
  47. String toString() {
  48. return 'MaintJobDetailData{id: $id, jobName: $jobName, jobNum: $jobNum, planName: $planName, planNum: $planNum, status: $status, startTime: $startTime, endTime: $endTime, cycleType: $cycleType, planRemarks: $planRemarks, closeReason: $closeReason, closePerson: $closePerson, closeTime: $closeTime, fileUrls: $fileUrls, creator: $creator, itemsList: $itemsList, maintEquipmentVOList: $maintEquipmentVOList, logs: $logs, customer: $customer, channel: $channel, prodCount: $prodCount, maintStaffName: $maintStaffName, finishTime: $finishTime}';
  49. }
  50. MaintJobDetailData(
  51. {this.id,
  52. this.jobName,
  53. this.jobNum,
  54. this.planName,
  55. this.planNum,
  56. this.status,
  57. this.startTime,
  58. this.endTime,
  59. this.cycleType,
  60. this.planRemarks,
  61. this.closeReason,
  62. this.closePerson,
  63. this.closeTime,
  64. this.fileUrls,
  65. this.creator,
  66. this.itemsList,
  67. this.maintEquipmentVOList,
  68. this.logs,
  69. this.customer,
  70. this.channel,
  71. this.prodCount,
  72. this.maintStaffName,
  73. this.finishTime});
  74. MaintJobDetailData.fromJson(Map<String, dynamic> json) {
  75. id = json['id'];
  76. jobName = json['jobName'];
  77. jobNum = json['jobNum'];
  78. planName = json['planName'];
  79. planNum = json['planNum'];
  80. status = json['status'];
  81. startTime = json['startTime'];
  82. endTime = json['endTime'];
  83. cycleType = json['cycleType'];
  84. planRemarks = json['planRemarks'];
  85. closeReason = json['closeReason'];
  86. closePerson = json['closePerson'];
  87. closeTime = json['closeTime'];
  88. if (json['fileUrls'] != null) {
  89. fileUrls = <FileUrls>[];
  90. json['fileUrls'].forEach((v) {
  91. fileUrls!.add(new FileUrls.fromJson(v));
  92. });
  93. }
  94. creator = json['creator'];
  95. itemsList = json['itemsList'];
  96. if (json['maintEquipmentVOList'] != null) {
  97. maintEquipmentVOList = <MaintEquipmentVOList>[];
  98. json['maintEquipmentVOList'].forEach((v) {
  99. maintEquipmentVOList!.add(new MaintEquipmentVOList.fromJson(v));
  100. });
  101. }
  102. if (json['logs'] != null) {
  103. logs = <Logs>[];
  104. json['logs'].forEach((v) {
  105. logs!.add(new Logs.fromJson(v));
  106. });
  107. }
  108. customer = json['customer'];
  109. channel = json['channel'];
  110. prodCount = json['prodCount'];
  111. maintStaffName = json['maintStaffName'];
  112. finishTime = json['finishTime'];
  113. }
  114. Map<String, dynamic> toJson() {
  115. final Map<String, dynamic> data = new Map<String, dynamic>();
  116. data['id'] = this.id;
  117. data['jobName'] = this.jobName;
  118. data['jobNum'] = this.jobNum;
  119. data['planName'] = this.planName;
  120. data['planNum'] = this.planNum;
  121. data['status'] = this.status;
  122. data['startTime'] = this.startTime;
  123. data['endTime'] = this.endTime;
  124. data['cycleType'] = this.cycleType;
  125. data['planRemarks'] = this.planRemarks;
  126. data['closeReason'] = this.closeReason;
  127. data['closePerson'] = this.closePerson;
  128. data['closeTime'] = this.closeTime;
  129. if (this.fileUrls != null) {
  130. data['fileUrls'] = this.fileUrls!.map((v) => v.toJson()).toList();
  131. }
  132. data['creator'] = this.creator;
  133. data['itemsList'] = this.itemsList;
  134. if (this.maintEquipmentVOList != null) {
  135. data['maintEquipmentVOList'] =
  136. this.maintEquipmentVOList!.map((v) => v.toJson()).toList();
  137. }
  138. if (this.logs != null) {
  139. data['logs'] = this.logs!.map((v) => v.toJson()).toList();
  140. }
  141. data['customer'] = this.customer;
  142. data['channel'] = this.channel;
  143. data['prodCount'] = this.prodCount;
  144. data['maintStaffName'] = this.maintStaffName;
  145. data['finishTime'] = this.finishTime;
  146. return data;
  147. }
  148. }
  149. class MaintEquipmentVOList {
  150. String? productName;
  151. List<DeviceList>? deviceList;
  152. MaintEquipmentVOList({this.productName, this.deviceList});
  153. MaintEquipmentVOList.fromJson(Map<String, dynamic> json) {
  154. productName = json['productName'];
  155. if (json['deviceList'] != null) {
  156. deviceList = <DeviceList>[];
  157. json['deviceList'].forEach((v) {
  158. deviceList!.add(new DeviceList.fromJson(v));
  159. });
  160. }
  161. }
  162. Map<String, dynamic> toJson() {
  163. final Map<String, dynamic> data = new Map<String, dynamic>();
  164. data['productName'] = this.productName;
  165. if (this.deviceList != null) {
  166. data['deviceList'] = this.deviceList!.map((v) => v.toJson()).toList();
  167. }
  168. return data;
  169. }
  170. }
  171. class DeviceList {
  172. int? id;
  173. String? name;
  174. String? showName;
  175. String? deviceKey;
  176. int? authType;
  177. int? isEnable;
  178. int? isActive;
  179. String? deviceSecret;
  180. String? deviceId;
  181. String? productName;
  182. String? productKey;
  183. int? productId;
  184. int? status;
  185. int? nodeType;
  186. String? connectionProtocol;
  187. String? ip;
  188. String? lastUpdateOn;
  189. String? activationOn;
  190. int? positionId;
  191. String? number;
  192. String? speedA;
  193. String? speedB;
  194. String? finenessA;
  195. String? finenessB;
  196. String? holeCountA;
  197. String? holeCountB;
  198. String? activePeriod;
  199. String? createdOn;
  200. String? lastOnlineOn;
  201. String? iotId;
  202. String? description;
  203. String? customerId;
  204. int? channelId;
  205. String? imei;
  206. DeviceList(
  207. {this.id,
  208. this.name,
  209. this.showName,
  210. this.deviceKey,
  211. this.authType,
  212. this.isEnable,
  213. this.isActive,
  214. this.deviceSecret,
  215. this.deviceId,
  216. this.productName,
  217. this.productKey,
  218. this.productId,
  219. this.status,
  220. this.nodeType,
  221. this.connectionProtocol,
  222. this.ip,
  223. this.lastUpdateOn,
  224. this.activationOn,
  225. this.positionId,
  226. this.number,
  227. this.speedA,
  228. this.speedB,
  229. this.finenessA,
  230. this.finenessB,
  231. this.holeCountA,
  232. this.holeCountB,
  233. this.activePeriod,
  234. this.createdOn,
  235. this.lastOnlineOn,
  236. this.iotId,
  237. this.description,
  238. this.customerId,
  239. this.channelId,
  240. this.imei});
  241. DeviceList.fromJson(Map<String, dynamic> json) {
  242. id = json['id'];
  243. name = json['name'];
  244. showName = json['showName'];
  245. deviceKey = json['deviceKey'];
  246. authType = json['authType'];
  247. isEnable = json['isEnable'];
  248. isActive = json['isActive'];
  249. deviceSecret = json['deviceSecret'];
  250. deviceId = json['deviceId'];
  251. productName = json['productName'];
  252. productKey = json['productKey'];
  253. productId = json['productId'];
  254. status = json['status'];
  255. nodeType = json['nodeType'];
  256. connectionProtocol = json['connectionProtocol'];
  257. ip = json['ip'];
  258. lastUpdateOn = json['lastUpdateOn'];
  259. activationOn = json['activationOn'];
  260. positionId = json['positionId'];
  261. number = json['number'];
  262. speedA = json['speedA'];
  263. speedB = json['speedB'];
  264. finenessA = json['finenessA'];
  265. finenessB = json['finenessB'];
  266. holeCountA = json['holeCountA'];
  267. holeCountB = json['holeCountB'];
  268. activePeriod = json['activePeriod'];
  269. createdOn = json['createdOn'];
  270. lastOnlineOn = json['lastOnlineOn'];
  271. iotId = json['iotId'];
  272. description = json['description'];
  273. customerId = json['customerId'];
  274. channelId = json['channelId'];
  275. imei = json['imei'];
  276. }
  277. Map<String, dynamic> toJson() {
  278. final Map<String, dynamic> data = new Map<String, dynamic>();
  279. data['id'] = this.id;
  280. data['name'] = this.name;
  281. data['showName'] = this.showName;
  282. data['deviceKey'] = this.deviceKey;
  283. data['authType'] = this.authType;
  284. data['isEnable'] = this.isEnable;
  285. data['isActive'] = this.isActive;
  286. data['deviceSecret'] = this.deviceSecret;
  287. data['deviceId'] = this.deviceId;
  288. data['productName'] = this.productName;
  289. data['productKey'] = this.productKey;
  290. data['productId'] = this.productId;
  291. data['status'] = this.status;
  292. data['nodeType'] = this.nodeType;
  293. data['connectionProtocol'] = this.connectionProtocol;
  294. data['ip'] = this.ip;
  295. data['lastUpdateOn'] = this.lastUpdateOn;
  296. data['activationOn'] = this.activationOn;
  297. data['positionId'] = this.positionId;
  298. data['number'] = this.number;
  299. data['speedA'] = this.speedA;
  300. data['speedB'] = this.speedB;
  301. data['finenessA'] = this.finenessA;
  302. data['finenessB'] = this.finenessB;
  303. data['holeCountA'] = this.holeCountA;
  304. data['holeCountB'] = this.holeCountB;
  305. data['activePeriod'] = this.activePeriod;
  306. data['createdOn'] = this.createdOn;
  307. data['lastOnlineOn'] = this.lastOnlineOn;
  308. data['iotId'] = this.iotId;
  309. data['description'] = this.description;
  310. data['customerId'] = this.customerId;
  311. data['channelId'] = this.channelId;
  312. data['imei'] = this.imei;
  313. return data;
  314. }
  315. }
  316. class Logs {
  317. String? createTime;
  318. String? updateTime;
  319. int? creator;
  320. int? updater;
  321. int? id;
  322. String? userName;
  323. String? description;
  324. int? maintJobId;
  325. Logs(
  326. {this.createTime,
  327. this.updateTime,
  328. this.creator,
  329. this.updater,
  330. this.id,
  331. this.userName,
  332. this.description,
  333. this.maintJobId});
  334. Logs.fromJson(Map<String, dynamic> json) {
  335. createTime = json['createTime'];
  336. updateTime = json['updateTime'];
  337. creator = json['creator'];
  338. updater = json['updater'];
  339. id = json['id'];
  340. userName = json['userName'];
  341. description = json['description'];
  342. maintJobId = json['maintJobId'];
  343. }
  344. Map<String, dynamic> toJson() {
  345. final Map<String, dynamic> data = new Map<String, dynamic>();
  346. data['createTime'] = this.createTime;
  347. data['updateTime'] = this.updateTime;
  348. data['creator'] = this.creator;
  349. data['updater'] = this.updater;
  350. data['id'] = this.id;
  351. data['userName'] = this.userName;
  352. data['description'] = this.description;
  353. data['maintJobId'] = this.maintJobId;
  354. return data;
  355. }
  356. }