liftcase_model.dart 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  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. LiftCaseAppealEntityModel liftCaseAppealEntity;
  84. QuestionBankEntityModel questionBankEntity;
  85. LiftCasesDetailModel(
  86. {this.id,
  87. this.isPlatformSpecified,
  88. this.createTime,
  89. this.createBy,
  90. this.videoUrl,
  91. this.updateTime,
  92. this.updateBy,
  93. this.expression,
  94. this.usedMethods,
  95. this.imgs,
  96. this.brandId,
  97. this.sessionId,
  98. this.address,
  99. this.chargerId,
  100. this.travelCost,
  101. this.serviceCost,
  102. this.totalCost,
  103. this.arrivedTime,
  104. this.statuz,
  105. this.acceptStatus,
  106. this.arrivedFlag,
  107. this.arrivedAddress,
  108. this.dataTable,
  109. this.createUserId,
  110. this.beforeRepair,
  111. this.afterRepair,
  112. this.customerServiceId,
  113. this.isInvoice,
  114. this.redEnvelopeDeduction,
  115. this.redEnvelopeId,
  116. this.couponDeduction,
  117. this.couponId,
  118. this.payCost,
  119. this.orderNo,
  120. this.payType,
  121. this.orderSerialNumber,
  122. this.name,
  123. this.avatarUrl,
  124. this.brandName,
  125. this.cancelSeason,
  126. this.liftCaseAppealStatus,
  127. this.liftCaseAppealEntity,
  128. this.questionBankEntity
  129. });
  130. LiftCasesDetailModel.fromJson(Map<String, dynamic> json) {
  131. id = json['id'];
  132. isPlatformSpecified = json['isPlatformSpecified'];
  133. videoUrl = json['videoUrl'];
  134. liftCaseAppealStatus = json['liftCaseAppealStatus'];
  135. createTime = json['createTime'];
  136. createBy = json['createBy'];
  137. updateTime = json['updateTime'];
  138. updateBy = json['updateBy'];
  139. expression = json['expression'];
  140. usedMethods = json['usedMethods'];
  141. imgs = json['imgs'];
  142. brandId = json['brandId'];
  143. sessionId = json['sessionId'];
  144. address = json['address'];
  145. chargerId = json['chargerId'];
  146. travelCost = json['travelCost'];
  147. serviceCost = json['serviceCost'];
  148. totalCost = json['totalCost'];
  149. arrivedTime = json['arrivedTime'];
  150. statuz = json['statuz'];
  151. acceptStatus = json['acceptStatus'];
  152. arrivedFlag = json['arrivedFlag'];
  153. arrivedAddress = json['arrivedAddress'];
  154. dataTable = json['dataTable'];
  155. createUserId = json['createUserId'];
  156. beforeRepair = json['beforeRepair'];
  157. afterRepair = json['afterRepair'];
  158. customerServiceId = json['customerServiceId'];
  159. isInvoice = json['isInvoice'];
  160. redEnvelopeDeduction = json['redEnvelopeDeduction'];
  161. redEnvelopeId = json['redEnvelopeId'];
  162. couponDeduction = json['couponDeduction'];
  163. couponId = json['couponId'];
  164. payCost = json['payCost'];
  165. orderNo = json['orderNo'];
  166. payType = json['payType'];
  167. orderSerialNumber = json['orderSerialNumber'];
  168. name = json['name'];
  169. avatarUrl = json['avatarUrl'];
  170. brandName = json['brandName'];
  171. cancelSeason = json['cancelSeason'];
  172. liftCaseAppealEntity = json['liftCaseAppealEntity'] != null
  173. ? new LiftCaseAppealEntityModel.fromJson(json['liftCaseAppealEntity'])
  174. : null;
  175. questionBankEntity = json['questionBankEntity'] != null
  176. ? new QuestionBankEntityModel.fromJson(json['questionBankEntity'])
  177. : null;
  178. }
  179. Map<String, dynamic> toJson() {
  180. final Map<String, dynamic> data = new Map<String, dynamic>();
  181. data['id'] = this.id;
  182. data['isPlatformSpecified'] = this.isPlatformSpecified;
  183. data['liftCaseAppealStatus'] = this.liftCaseAppealStatus;
  184. data['createTime'] = this.createTime;
  185. data['createBy'] = this.createBy;
  186. data['updateTime'] = this.updateTime;
  187. data['updateBy'] = this.updateBy;
  188. data['videoUrl'] = this.videoUrl;
  189. data['expression'] = this.expression;
  190. data['usedMethods'] = this.usedMethods;
  191. data['imgs'] = this.imgs;
  192. data['brandId'] = this.brandId;
  193. data['sessionId'] = this.sessionId;
  194. data['address'] = this.address;
  195. data['chargerId'] = this.chargerId;
  196. data['travelCost'] = this.travelCost;
  197. data['serviceCost'] = this.serviceCost;
  198. data['totalCost'] = this.totalCost;
  199. data['arrivedTime'] = this.arrivedTime;
  200. data['statuz'] = this.statuz;
  201. data['acceptStatus'] = this.acceptStatus;
  202. data['arrivedFlag'] = this.arrivedFlag;
  203. data['arrivedAddress'] = this.arrivedAddress;
  204. data['dataTable'] = this.dataTable;
  205. data['createUserId'] = this.createUserId;
  206. data['beforeRepair'] = this.beforeRepair;
  207. data['afterRepair'] = this.afterRepair;
  208. data['customerServiceId'] = this.customerServiceId;
  209. data['isInvoice'] = this.isInvoice;
  210. data['redEnvelopeDeduction'] = this.redEnvelopeDeduction;
  211. data['redEnvelopeId'] = this.redEnvelopeId;
  212. data['couponDeduction'] = this.couponDeduction;
  213. data['couponId'] = this.couponId;
  214. data['payCost'] = this.payCost;
  215. data['orderNo'] = this.orderNo;
  216. data['payType'] = this.payType;
  217. data['orderSerialNumber'] = this.orderSerialNumber;
  218. data['name'] = this.name;
  219. data['avatarUrl'] = this.avatarUrl;
  220. data['brandName'] = this.brandName;
  221. data['cancelSeason'] = this.cancelSeason;
  222. if (this.liftCaseAppealEntity != null) {
  223. data['liftCaseAppealEntity'] = this.liftCaseAppealEntity.toJson();
  224. }
  225. if (this.questionBankEntity != null) {
  226. data['questionBankEntity'] = this.questionBankEntity.toJson();
  227. }
  228. return data;
  229. }
  230. }
  231. class QuestionBankEntityModel {
  232. String notExamineReason;
  233. QuestionBankEntityModel(
  234. {this.notExamineReason,});
  235. QuestionBankEntityModel.fromJson(Map<String, dynamic> json) {
  236. notExamineReason = json['notExamineReason'];
  237. }
  238. Map<String, dynamic> toJson() {
  239. final Map<String, dynamic> data = new Map<String, dynamic>();
  240. data['notExamineReason'] = this.notExamineReason;
  241. return data;
  242. }
  243. }
  244. class LiftCaseAppealEntityModel {
  245. String appealerId;
  246. String cancelSeason;
  247. int caseId;
  248. String content;
  249. String createBy;
  250. int createTime;
  251. int dataId;
  252. String expertName;
  253. String expression;
  254. int id;
  255. String imgs;
  256. String sessionid;
  257. int statuz;
  258. String updateBy;
  259. int updateTime;
  260. String userName;
  261. LiftCaseAppealEntityModel(
  262. {this.appealerId,
  263. this.cancelSeason,
  264. this.caseId,
  265. this.content,
  266. this.createBy,
  267. this.createTime,
  268. this.dataId,
  269. this.expertName,
  270. this.expression,
  271. this.id,
  272. this.imgs,
  273. this.sessionid,
  274. this.statuz,
  275. this.updateBy,
  276. this.updateTime,
  277. this.userName});
  278. LiftCaseAppealEntityModel.fromJson(Map<String, dynamic> json) {
  279. appealerId = json['appealerId'];
  280. cancelSeason = json['cancelSeason'];
  281. caseId = json['caseId'];
  282. content = json['content'];
  283. createBy = json['createBy'];
  284. createTime = json['createTime'];
  285. dataId = json['dataId'];
  286. expertName = json['expertName'];
  287. expression = json['expression'];
  288. id = json['id'];
  289. imgs = json['imgs'];
  290. sessionid = json['sessionid'];
  291. statuz = json['statuz'];
  292. updateBy = json['updateBy'];
  293. updateTime = json['updateTime'];
  294. userName = json['userName'];
  295. }
  296. Map<String, dynamic> toJson() {
  297. final Map<String, dynamic> data = new Map<String, dynamic>();
  298. data['appealerId'] = this.appealerId;
  299. data['cancelSeason'] = this.cancelSeason;
  300. data['caseId'] = this.caseId;
  301. data['content'] = this.content;
  302. data['createBy'] = this.createBy;
  303. data['createTime'] = this.createTime;
  304. data['dataId'] = this.dataId;
  305. data['expertName'] = this.expertName;
  306. data['expression'] = this.expression;
  307. data['id'] = this.id;
  308. data['imgs'] = this.imgs;
  309. data['sessionid'] = this.sessionid;
  310. data['statuz'] = this.statuz;
  311. data['updateBy'] = this.updateBy;
  312. data['updateTime'] = this.updateTime;
  313. data['userName'] = this.userName;
  314. return data;
  315. }
  316. }