liftcase_model.dart 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. class LiftCasesModel {
  2. List<LiftCasesDetailModel> records;
  3. int total;
  4. int size;
  5. int current;
  6. bool searchCount;
  7. int pages;
  8. LiftCasesModel(
  9. {this.records,
  10. this.total,
  11. this.size,
  12. this.current,
  13. this.searchCount,
  14. this.pages});
  15. LiftCasesModel.fromJson(Map<String, dynamic> json) {
  16. if (json['records'] != null) {
  17. records = new List<LiftCasesDetailModel>();
  18. json['records'].forEach((v) {
  19. records.add(new LiftCasesDetailModel.fromJson(v));
  20. });
  21. }
  22. total = json['total'];
  23. size = json['size'];
  24. current = json['current'];
  25. searchCount = json['searchCount'];
  26. pages = json['pages'];
  27. }
  28. Map<String, dynamic> toJson() {
  29. final Map<String, dynamic> data = new Map<String, dynamic>();
  30. if (this.records != null) {
  31. data['records'] = this.records.map((v) => v.toJson()).toList();
  32. }
  33. data['total'] = this.total;
  34. data['size'] = this.size;
  35. data['current'] = this.current;
  36. data['searchCount'] = this.searchCount;
  37. data['pages'] = this.pages;
  38. return data;
  39. }
  40. }
  41. class LiftCasesDetailModel {
  42. int id;
  43. int isPlatformSpecified;
  44. int createTime;
  45. String createBy;
  46. int updateTime;
  47. String updateBy;
  48. String expression;
  49. String usedMethods;
  50. String imgs;
  51. int brandId;
  52. String sessionId;
  53. String address;
  54. String chargerId;
  55. double travelCost;
  56. double serviceCost;
  57. double totalCost;
  58. int arrivedTime;
  59. int statuz;
  60. int acceptStatus;
  61. int arrivedFlag;
  62. String arrivedAddress;
  63. int dataTable;
  64. String createUserId;
  65. String beforeRepair;
  66. String afterRepair;
  67. String customerServiceId;
  68. int isInvoice;
  69. double redEnvelopeDeduction;
  70. int redEnvelopeId;
  71. double couponDeduction;
  72. int couponId;
  73. int liftCaseAppealStatus;
  74. double payCost;
  75. String orderNo;
  76. int payType;
  77. String orderSerialNumber;
  78. String name;
  79. String avatarUrl;
  80. String brandName;
  81. String videoUrl;
  82. String cancelSeason;
  83. String notExamineReason;
  84. String examineFlag;
  85. String productionDate;
  86. LiftCaseAppealEntityModel liftCaseAppealEntity;
  87. QuestionBankEntityModel questionBankEntity;
  88. LiftCasesDetailModel({
  89. this.id,
  90. this.isPlatformSpecified,
  91. this.createTime,
  92. this.createBy,
  93. this.videoUrl,
  94. this.updateTime,
  95. this.updateBy,
  96. this.expression,
  97. this.usedMethods,
  98. this.imgs,
  99. this.brandId,
  100. this.sessionId,
  101. this.address,
  102. this.chargerId,
  103. this.travelCost,
  104. this.serviceCost,
  105. this.totalCost,
  106. this.arrivedTime,
  107. this.statuz,
  108. this.acceptStatus,
  109. this.arrivedFlag,
  110. this.arrivedAddress,
  111. this.dataTable,
  112. this.createUserId,
  113. this.beforeRepair,
  114. this.afterRepair,
  115. this.customerServiceId,
  116. this.isInvoice,
  117. this.redEnvelopeDeduction,
  118. this.redEnvelopeId,
  119. this.couponDeduction,
  120. this.couponId,
  121. this.payCost,
  122. this.orderNo,
  123. this.payType,
  124. this.orderSerialNumber,
  125. this.name,
  126. this.avatarUrl,
  127. this.brandName,
  128. this.cancelSeason,
  129. this.liftCaseAppealStatus,
  130. this.liftCaseAppealEntity,
  131. this.questionBankEntity,
  132. this.notExamineReason,
  133. this.examineFlag,
  134. this.productionDate,
  135. });
  136. LiftCasesDetailModel.fromJson(Map<String, dynamic> json) {
  137. id = json['id'];
  138. isPlatformSpecified = json['isPlatformSpecified'];
  139. videoUrl = json['videoUrl'];
  140. liftCaseAppealStatus = json['liftCaseAppealStatus'];
  141. createTime = json['createTime'];
  142. createBy = json['createBy'];
  143. updateTime = json['updateTime'];
  144. updateBy = json['updateBy'];
  145. expression = json['expression'];
  146. usedMethods = json['usedMethods'];
  147. imgs = json['imgs'];
  148. brandId = json['brandId'];
  149. sessionId = json['sessionId'];
  150. address = json['address'];
  151. chargerId = json['chargerId'];
  152. travelCost = json['travelCost'];
  153. serviceCost = json['serviceCost'];
  154. totalCost = json['totalCost'];
  155. arrivedTime = json['arrivedTime'];
  156. statuz = json['statuz'];
  157. acceptStatus = json['acceptStatus'];
  158. arrivedFlag = json['arrivedFlag'];
  159. arrivedAddress = json['arrivedAddress'];
  160. dataTable = json['dataTable'];
  161. createUserId = json['createUserId'];
  162. beforeRepair = json['beforeRepair'];
  163. afterRepair = json['afterRepair'];
  164. customerServiceId = json['customerServiceId'];
  165. isInvoice = json['isInvoice'];
  166. redEnvelopeDeduction = json['redEnvelopeDeduction'];
  167. redEnvelopeId = json['redEnvelopeId'];
  168. couponDeduction = json['couponDeduction'];
  169. couponId = json['couponId'];
  170. payCost = json['payCost'];
  171. orderNo = json['orderNo'];
  172. payType = json['payType'];
  173. orderSerialNumber = json['orderSerialNumber'];
  174. name = json['name'];
  175. avatarUrl = json['avatarUrl'];
  176. brandName = json['brandName'];
  177. cancelSeason = json['cancelSeason'];
  178. notExamineReason = json['notExamineReason'];
  179. examineFlag = json['examineFlag'];
  180. productionDate = json['productionDate'];
  181. liftCaseAppealEntity = json['liftCaseAppealEntity'] != null
  182. ? new LiftCaseAppealEntityModel.fromJson(json['liftCaseAppealEntity'])
  183. : null;
  184. questionBankEntity = json['questionBankEntity'] != null
  185. ? new QuestionBankEntityModel.fromJson(json['questionBankEntity'])
  186. : null;
  187. }
  188. Map<String, dynamic> toJson() {
  189. final Map<String, dynamic> data = new Map<String, dynamic>();
  190. data['id'] = this.id;
  191. data['isPlatformSpecified'] = this.isPlatformSpecified;
  192. data['liftCaseAppealStatus'] = this.liftCaseAppealStatus;
  193. data['createTime'] = this.createTime;
  194. data['createBy'] = this.createBy;
  195. data['updateTime'] = this.updateTime;
  196. data['updateBy'] = this.updateBy;
  197. data['videoUrl'] = this.videoUrl;
  198. data['expression'] = this.expression;
  199. data['usedMethods'] = this.usedMethods;
  200. data['imgs'] = this.imgs;
  201. data['brandId'] = this.brandId;
  202. data['sessionId'] = this.sessionId;
  203. data['address'] = this.address;
  204. data['chargerId'] = this.chargerId;
  205. data['travelCost'] = this.travelCost;
  206. data['serviceCost'] = this.serviceCost;
  207. data['totalCost'] = this.totalCost;
  208. data['arrivedTime'] = this.arrivedTime;
  209. data['statuz'] = this.statuz;
  210. data['acceptStatus'] = this.acceptStatus;
  211. data['arrivedFlag'] = this.arrivedFlag;
  212. data['arrivedAddress'] = this.arrivedAddress;
  213. data['dataTable'] = this.dataTable;
  214. data['createUserId'] = this.createUserId;
  215. data['beforeRepair'] = this.beforeRepair;
  216. data['afterRepair'] = this.afterRepair;
  217. data['customerServiceId'] = this.customerServiceId;
  218. data['isInvoice'] = this.isInvoice;
  219. data['redEnvelopeDeduction'] = this.redEnvelopeDeduction;
  220. data['redEnvelopeId'] = this.redEnvelopeId;
  221. data['couponDeduction'] = this.couponDeduction;
  222. data['couponId'] = this.couponId;
  223. data['payCost'] = this.payCost;
  224. data['orderNo'] = this.orderNo;
  225. data['payType'] = this.payType;
  226. data['orderSerialNumber'] = this.orderSerialNumber;
  227. data['name'] = this.name;
  228. data['avatarUrl'] = this.avatarUrl;
  229. data['brandName'] = this.brandName;
  230. data['cancelSeason'] = this.cancelSeason;
  231. data['notExamineReason'] = this.notExamineReason;
  232. data['examineFlag'] = this.examineFlag;
  233. data['productionDate'] = this.productionDate;
  234. if (this.liftCaseAppealEntity != null) {
  235. data['liftCaseAppealEntity'] = this.liftCaseAppealEntity.toJson();
  236. }
  237. if (this.questionBankEntity != null) {
  238. data['questionBankEntity'] = this.questionBankEntity.toJson();
  239. }
  240. return data;
  241. }
  242. }
  243. class QuestionBankEntityModel {
  244. String notExamineReason;
  245. int examineFlag;
  246. QuestionBankEntityModel({this.notExamineReason, this.examineFlag});
  247. QuestionBankEntityModel.fromJson(Map<String, dynamic> json) {
  248. notExamineReason = json['notExamineReason'];
  249. examineFlag = json['examineFlag'];
  250. }
  251. Map<String, dynamic> toJson() {
  252. final Map<String, dynamic> data = new Map<String, dynamic>();
  253. data['notExamineReason'] = this.notExamineReason;
  254. data['examineFlag'] = this.examineFlag;
  255. return data;
  256. }
  257. }
  258. class LiftCaseAppealEntityModel {
  259. String appealerId;
  260. String cancelSeason;
  261. int caseId;
  262. String content;
  263. String createBy;
  264. int createTime;
  265. int dataId;
  266. String expertName;
  267. String expression;
  268. int id;
  269. String imgs;
  270. String sessionid;
  271. int statuz;
  272. String updateBy;
  273. int updateTime;
  274. String userName;
  275. LiftCaseAppealEntityModel(
  276. {this.appealerId,
  277. this.cancelSeason,
  278. this.caseId,
  279. this.content,
  280. this.createBy,
  281. this.createTime,
  282. this.dataId,
  283. this.expertName,
  284. this.expression,
  285. this.id,
  286. this.imgs,
  287. this.sessionid,
  288. this.statuz,
  289. this.updateBy,
  290. this.updateTime,
  291. this.userName});
  292. LiftCaseAppealEntityModel.fromJson(Map<String, dynamic> json) {
  293. appealerId = json['appealerId'];
  294. cancelSeason = json['cancelSeason'];
  295. caseId = json['caseId'];
  296. content = json['content'];
  297. createBy = json['createBy'];
  298. createTime = json['createTime'];
  299. dataId = json['dataId'];
  300. expertName = json['expertName'];
  301. expression = json['expression'];
  302. id = json['id'];
  303. imgs = json['imgs'];
  304. sessionid = json['sessionid'];
  305. statuz = json['statuz'];
  306. updateBy = json['updateBy'];
  307. updateTime = json['updateTime'];
  308. userName = json['userName'];
  309. }
  310. Map<String, dynamic> toJson() {
  311. final Map<String, dynamic> data = new Map<String, dynamic>();
  312. data['appealerId'] = this.appealerId;
  313. data['cancelSeason'] = this.cancelSeason;
  314. data['caseId'] = this.caseId;
  315. data['content'] = this.content;
  316. data['createBy'] = this.createBy;
  317. data['createTime'] = this.createTime;
  318. data['dataId'] = this.dataId;
  319. data['expertName'] = this.expertName;
  320. data['expression'] = this.expression;
  321. data['id'] = this.id;
  322. data['imgs'] = this.imgs;
  323. data['sessionid'] = this.sessionid;
  324. data['statuz'] = this.statuz;
  325. data['updateBy'] = this.updateBy;
  326. data['updateTime'] = this.updateTime;
  327. data['userName'] = this.userName;
  328. return data;
  329. }
  330. }