maint_pesonse_entity.dart 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. class MaintJobResponse {
  2. int? code;
  3. MaintJobList? data;
  4. String? msg;
  5. @override
  6. String toString() {
  7. return 'maintJobResponse{code: $code, data: $data, msg: $msg}';
  8. }
  9. MaintJobResponse({this.code, this.data, this.msg});
  10. MaintJobResponse.fromJson(Map<String, dynamic> json) {
  11. code = json['code'];
  12. data = json['data'] != null ? new MaintJobList.fromJson(json['data']) : null;
  13. msg = json['msg'];
  14. }
  15. Map<String, dynamic> toJson() {
  16. final Map<String, dynamic> data = new Map<String, dynamic>();
  17. data['code'] = this.code;
  18. if (this.data != null) {
  19. data['data'] = this.data!.toJson();
  20. }
  21. data['msg'] = this.msg;
  22. return data;
  23. }
  24. }
  25. class MaintJobList {
  26. int? total;
  27. int? index;
  28. int? size;
  29. @override
  30. String toString() {
  31. return 'maintJobList{total: $total, index: $index, size: $size, sortBy: $sortBy, sort: $sort, query: $query, list: $list}';
  32. }
  33. String? sortBy;
  34. int? sort;
  35. MaintJobVO? query;
  36. List<MaintJobVO>? list;
  37. MaintJobList(
  38. {this.total,
  39. this.index,
  40. this.size,
  41. this.sortBy,
  42. this.sort,
  43. this.query,
  44. this.list});
  45. MaintJobList.fromJson(Map<String, dynamic> json) {
  46. total = json['total'];
  47. index = json['index'];
  48. size = json['size'];
  49. sortBy = json['sortBy'];
  50. sort = json['sort'];
  51. query = json['query'] != null ? new MaintJobVO.fromJson(json['query']) : null;
  52. if (json['list'] != null) {
  53. list = <MaintJobVO>[];
  54. json['list'].forEach((v) {
  55. list!.add(new MaintJobVO.fromJson(v));
  56. });
  57. }
  58. }
  59. Map<String, dynamic> toJson() {
  60. final Map<String, dynamic> data = new Map<String, dynamic>();
  61. data['total'] = this.total;
  62. data['index'] = this.index;
  63. data['size'] = this.size;
  64. data['sortBy'] = this.sortBy;
  65. data['sort'] = this.sort;
  66. if (this.query != null) {
  67. data['query'] = this.query!.toJson();
  68. }
  69. if (this.list != null) {
  70. data['list'] = this.list!.map((v) => v.toJson()).toList();
  71. }
  72. return data;
  73. }
  74. }
  75. class MaintJobVO {
  76. int? id;
  77. @override
  78. String toString() {
  79. return 'maintJobVO{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}';
  80. }
  81. String? jobName;
  82. String? jobNum;
  83. String? planName;
  84. String? planNum;
  85. int? status;
  86. String? startTime;
  87. String? endTime;
  88. int? cycleType;
  89. String? planRemarks;
  90. String? closeReason;
  91. String? closePerson;
  92. String? closeTime;
  93. String? fileUrls;
  94. String? creator;
  95. String? itemsList;
  96. String? maintEquipmentVOList;
  97. String? logs;
  98. String? customer;
  99. String? channel;
  100. int? prodCount;
  101. MaintJobVO(
  102. {this.id,
  103. this.jobName,
  104. this.jobNum,
  105. this.planName,
  106. this.planNum,
  107. this.status,
  108. this.startTime,
  109. this.endTime,
  110. this.cycleType,
  111. this.planRemarks,
  112. this.closeReason,
  113. this.closePerson,
  114. this.closeTime,
  115. this.fileUrls,
  116. this.creator,
  117. this.itemsList,
  118. this.maintEquipmentVOList,
  119. this.logs,
  120. this.customer,
  121. this.channel,
  122. this.prodCount});
  123. MaintJobVO.fromJson(Map<String, dynamic> json) {
  124. id = json['id'];
  125. jobName = json['jobName'];
  126. jobNum = json['jobNum'];
  127. planName = json['planName'];
  128. planNum = json['planNum'];
  129. status = json['status'];
  130. startTime = json['startTime'];
  131. endTime = json['endTime'];
  132. cycleType = json['cycleType'];
  133. planRemarks = json['planRemarks'];
  134. closeReason = json['closeReason'];
  135. closePerson = json['closePerson'];
  136. closeTime = json['closeTime'];
  137. fileUrls = json['fileUrls'];
  138. creator = json['creator'];
  139. itemsList = json['itemsList'];
  140. maintEquipmentVOList = json['maintEquipmentVOList'];
  141. logs = json['logs'];
  142. customer = json['customer'];
  143. channel = json['channel'];
  144. prodCount = json['prodCount'];
  145. }
  146. Map<String, dynamic> toJson() {
  147. final Map<String, dynamic> data = new Map<String, dynamic>();
  148. data['id'] = this.id;
  149. data['jobName'] = this.jobName;
  150. data['jobNum'] = this.jobNum;
  151. data['planName'] = this.planName;
  152. data['planNum'] = this.planNum;
  153. data['status'] = this.status;
  154. data['startTime'] = this.startTime;
  155. data['endTime'] = this.endTime;
  156. data['cycleType'] = this.cycleType;
  157. data['planRemarks'] = this.planRemarks;
  158. data['closeReason'] = this.closeReason;
  159. data['closePerson'] = this.closePerson;
  160. data['closeTime'] = this.closeTime;
  161. data['fileUrls'] = this.fileUrls;
  162. data['creator'] = this.creator;
  163. data['itemsList'] = this.itemsList;
  164. data['maintEquipmentVOList'] = this.maintEquipmentVOList;
  165. data['logs'] = this.logs;
  166. data['customer'] = this.customer;
  167. data['channel'] = this.channel;
  168. data['prodCount'] = this.prodCount;
  169. return data;
  170. }
  171. }