piao_model.dart 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. class PiaoModelPage {
  2. List<Records> records;
  3. int total;
  4. int size;
  5. int current;
  6. bool searchCount;
  7. int pages;
  8. PiaoModelPage(
  9. {this.records,
  10. this.total,
  11. this.size,
  12. this.current,
  13. this.searchCount,
  14. this.pages});
  15. PiaoModelPage.fromJson(Map<String, dynamic> json) {
  16. if (json['records'] != null) {
  17. records = new List<Records>();
  18. json['records'].forEach((v) {
  19. records.add(new Records.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 Records {
  42. int id;
  43. int createTime;
  44. String createBy;
  45. int updateTime;
  46. String updateBy;
  47. int userInvoiceId;
  48. String email;
  49. String userId;
  50. String fpqqlsh;
  51. String kplx;
  52. String gmfNsrsbm;
  53. String gmfMc;
  54. String kpr;
  55. String skr;
  56. String fhr;
  57. double jshj;
  58. double hjje;
  59. double hjse;
  60. String bz;
  61. String dm;
  62. String hm;
  63. int kqrq;
  64. String fpmw;
  65. String jym;
  66. String ewm;
  67. int statuz;
  68. String reason;
  69. int checkFlag;
  70. int type;
  71. String gmfYh;
  72. String gmfZh;
  73. String gmfDz;
  74. String gmfDh;
  75. String invoiceType;
  76. String receiveTicket;
  77. String receiveMebile;
  78. String receiveAddress;
  79. List<InvoiceImg> invoiceImg;
  80. List<InvoiceItem> invoiceItem;
  81. List<LiftCaseEntity> liftCaseEntity;
  82. UserInvoice userInvoice;
  83. Records(
  84. {this.id,
  85. this.createTime,
  86. this.createBy,
  87. this.invoiceType,
  88. this.updateTime,
  89. this.updateBy,
  90. this.userInvoiceId,
  91. this.email,
  92. this.userId,
  93. this.fpqqlsh,
  94. this.kplx,
  95. this.gmfNsrsbm,
  96. this.gmfMc,
  97. this.kpr,
  98. this.skr,
  99. this.fhr,
  100. this.jshj,
  101. this.hjje,
  102. this.hjse,
  103. this.bz,
  104. this.dm,
  105. this.hm,
  106. this.kqrq,
  107. this.fpmw,
  108. this.jym,
  109. this.ewm,
  110. this.statuz,
  111. this.reason,
  112. this.checkFlag,
  113. this.type,
  114. this.gmfYh,
  115. this.gmfZh,
  116. this.gmfDz,
  117. this.gmfDh,
  118. this.receiveTicket,
  119. this.receiveMebile,
  120. this.receiveAddress,
  121. this.invoiceImg,
  122. this.invoiceItem,
  123. this.liftCaseEntity,
  124. this.userInvoice});
  125. Records.fromJson(Map<String, dynamic> json) {
  126. id = json['id'];
  127. invoiceType = json['invoiceType'];
  128. receiveTicket = json['receiveTicket'];
  129. receiveAddress = json['receiveAddress'];
  130. receiveMebile = json['receiveMebile'];
  131. invoiceType = json['invoiceType'];
  132. createTime = json['createTime'];
  133. createBy = json['createBy'];
  134. updateTime = json['updateTime'];
  135. updateBy = json['updateBy'];
  136. userInvoiceId = json['userInvoiceId'];
  137. email = json['email'];
  138. userId = json['userId'];
  139. fpqqlsh = json['fpqqlsh'];
  140. kplx = json['kplx'];
  141. gmfNsrsbm = json['gmfNsrsbm'];
  142. gmfMc = json['gmfMc'];
  143. kpr = json['kpr'];
  144. skr = json['skr'];
  145. fhr = json['fhr'];
  146. jshj = json['jshj'];
  147. hjje = json['hjje'];
  148. hjse = json['hjse'];
  149. bz = json['bz'];
  150. dm = json['dm'];
  151. hm = json['hm'];
  152. kqrq = json['kqrq'];
  153. fpmw = json['fpmw'];
  154. jym = json['jym'];
  155. ewm = json['ewm'];
  156. statuz = json['statuz'];
  157. reason = json['reason'];
  158. checkFlag = json['checkFlag'];
  159. type = json['type'];
  160. gmfYh = json['gmfYh'];
  161. gmfZh = json['gmfZh'];
  162. gmfDz = json['gmfDz'];
  163. gmfDh = json['gmfDh'];
  164. if (json['invoiceImg'] != null) {
  165. invoiceImg = new List<InvoiceImg>();
  166. json['invoiceImg'].forEach((v) {
  167. invoiceImg.add(new InvoiceImg.fromJson(v));
  168. });
  169. }
  170. if (json['invoiceItem'] != null) {
  171. invoiceItem = new List<InvoiceItem>();
  172. json['invoiceItem'].forEach((v) {
  173. invoiceItem.add(new InvoiceItem.fromJson(v));
  174. });
  175. }
  176. if (json['liftCaseEntity'] != null) {
  177. liftCaseEntity = new List<LiftCaseEntity>();
  178. json['liftCaseEntity'].forEach((v) {
  179. liftCaseEntity.add(new LiftCaseEntity.fromJson(v));
  180. });
  181. }
  182. userInvoice = json['userInvoice'] != null
  183. ? new UserInvoice.fromJson(json['userInvoice'])
  184. : null;
  185. }
  186. Map<String, dynamic> toJson() {
  187. final Map<String, dynamic> data = new Map<String, dynamic>();
  188. data['receiveAddress'] = this.receiveAddress;
  189. data['receiveMebile'] = this.receiveMebile;
  190. data['receiveTicket'] = this.receiveTicket;
  191. data['invoiceType'] = this.invoiceType;
  192. data['id'] = this.id;
  193. data['createTime'] = this.createTime;
  194. data['createBy'] = this.createBy;
  195. data['updateTime'] = this.updateTime;
  196. data['updateBy'] = this.updateBy;
  197. data['userInvoiceId'] = this.userInvoiceId;
  198. data['email'] = this.email;
  199. data['userId'] = this.userId;
  200. data['fpqqlsh'] = this.fpqqlsh;
  201. data['kplx'] = this.kplx;
  202. data['gmfNsrsbm'] = this.gmfNsrsbm;
  203. data['gmfMc'] = this.gmfMc;
  204. data['kpr'] = this.kpr;
  205. data['skr'] = this.skr;
  206. data['fhr'] = this.fhr;
  207. data['jshj'] = this.jshj;
  208. data['hjje'] = this.hjje;
  209. data['hjse'] = this.hjse;
  210. data['bz'] = this.bz;
  211. data['dm'] = this.dm;
  212. data['hm'] = this.hm;
  213. data['kqrq'] = this.kqrq;
  214. data['fpmw'] = this.fpmw;
  215. data['jym'] = this.jym;
  216. data['ewm'] = this.ewm;
  217. data['statuz'] = this.statuz;
  218. data['reason'] = this.reason;
  219. data['checkFlag'] = this.checkFlag;
  220. data['type'] = this.type;
  221. data['gmfYh'] = this.gmfYh;
  222. data['gmfZh'] = this.gmfZh;
  223. data['gmfDz'] = this.gmfDz;
  224. data['gmfDh'] = this.gmfDh;
  225. if (this.invoiceImg != null) {
  226. data['invoiceImg'] = this.invoiceImg.map((v) => v.toJson()).toList();
  227. }
  228. if (this.invoiceItem != null) {
  229. data['invoiceItem'] = this.invoiceItem.map((v) => v.toJson()).toList();
  230. }
  231. if (this.liftCaseEntity != null) {
  232. data['liftCaseEntity'] =
  233. this.liftCaseEntity.map((v) => v.toJson()).toList();
  234. }
  235. if (this.userInvoice != null) {
  236. data['userInvoice'] = this.userInvoice.toJson();
  237. }
  238. return data;
  239. }
  240. }
  241. class InvoiceImg {
  242. int id;
  243. int createTime;
  244. String createBy;
  245. int updateTime;
  246. String updateBy;
  247. String dataId;
  248. String url;
  249. String base64Code;
  250. InvoiceImg(
  251. {this.id,
  252. this.createTime,
  253. this.createBy,
  254. this.updateTime,
  255. this.updateBy,
  256. this.dataId,
  257. this.url,
  258. this.base64Code});
  259. InvoiceImg.fromJson(Map<String, dynamic> json) {
  260. id = json['id'];
  261. createTime = json['createTime'];
  262. createBy = json['createBy'];
  263. updateTime = json['updateTime'];
  264. updateBy = json['updateBy'];
  265. dataId = json['dataId'];
  266. url = json['url'];
  267. base64Code = json['base64Code'];
  268. }
  269. Map<String, dynamic> toJson() {
  270. final Map<String, dynamic> data = new Map<String, dynamic>();
  271. data['id'] = this.id;
  272. data['createTime'] = this.createTime;
  273. data['createBy'] = this.createBy;
  274. data['updateTime'] = this.updateTime;
  275. data['updateBy'] = this.updateBy;
  276. data['dataId'] = this.dataId;
  277. data['url'] = this.url;
  278. data['base64Code'] = this.base64Code;
  279. return data;
  280. }
  281. }
  282. class InvoiceItem {
  283. int id;
  284. int createTime;
  285. String createBy;
  286. int updateTime;
  287. String updateBy;
  288. int dataId;
  289. int dataType;
  290. int invoiceId;
  291. int fphxz;
  292. String xmmc;
  293. String dw;
  294. String ggxh;
  295. int xmsl;
  296. double xmdj;
  297. double xmze;
  298. double sl;
  299. double se;
  300. InvoiceItem(
  301. {this.id,
  302. this.createTime,
  303. this.createBy,
  304. this.updateTime,
  305. this.updateBy,
  306. this.dataId,
  307. this.dataType,
  308. this.invoiceId,
  309. this.fphxz,
  310. this.xmmc,
  311. this.dw,
  312. this.ggxh,
  313. this.xmsl,
  314. this.xmdj,
  315. this.xmze,
  316. this.sl,
  317. this.se});
  318. InvoiceItem.fromJson(Map<String, dynamic> json) {
  319. id = json['id'];
  320. createTime = json['createTime'];
  321. createBy = json['createBy'];
  322. updateTime = json['updateTime'];
  323. updateBy = json['updateBy'];
  324. dataId = json['dataId'];
  325. dataType = json['dataType'];
  326. invoiceId = json['invoiceId'];
  327. fphxz = json['fphxz'];
  328. xmmc = json['xmmc'];
  329. dw = json['dw'];
  330. ggxh = json['ggxh'];
  331. xmsl = json['xmsl'];
  332. xmdj = json['xmdj'];
  333. xmze = json['xmze'];
  334. sl = json['sl'];
  335. se = json['se'];
  336. }
  337. Map<String, dynamic> toJson() {
  338. final Map<String, dynamic> data = new Map<String, dynamic>();
  339. data['id'] = this.id;
  340. data['createTime'] = this.createTime;
  341. data['createBy'] = this.createBy;
  342. data['updateTime'] = this.updateTime;
  343. data['updateBy'] = this.updateBy;
  344. data['dataId'] = this.dataId;
  345. data['dataType'] = this.dataType;
  346. data['invoiceId'] = this.invoiceId;
  347. data['fphxz'] = this.fphxz;
  348. data['xmmc'] = this.xmmc;
  349. data['dw'] = this.dw;
  350. data['ggxh'] = this.ggxh;
  351. data['xmsl'] = this.xmsl;
  352. data['xmdj'] = this.xmdj;
  353. data['xmze'] = this.xmze;
  354. data['sl'] = this.sl;
  355. data['se'] = this.se;
  356. return data;
  357. }
  358. }
  359. class UserInvoice {
  360. int id;
  361. int createTime;
  362. String createBy;
  363. int updateTime;
  364. String updateBy;
  365. int type;
  366. String name;
  367. String telephone;
  368. String email;
  369. String gmfNsrsbm;
  370. String gmfMc;
  371. String gmfDz;
  372. String gmfDh;
  373. String gmfYh;
  374. String gmfZh;
  375. String userId;
  376. int isDefault;
  377. String enterpriseNumber;
  378. UserInvoice(
  379. {this.id,
  380. this.createTime,
  381. this.createBy,
  382. this.updateTime,
  383. this.updateBy,
  384. this.type,
  385. this.name,
  386. this.telephone,
  387. this.email,
  388. this.gmfNsrsbm,
  389. this.gmfMc,
  390. this.gmfDz,
  391. this.gmfDh,
  392. this.gmfYh,
  393. this.gmfZh,
  394. this.userId,
  395. this.isDefault,
  396. this.enterpriseNumber});
  397. UserInvoice.fromJson(Map<String, dynamic> json) {
  398. id = json['id'];
  399. createTime = json['createTime'];
  400. createBy = json['createBy'];
  401. updateTime = json['updateTime'];
  402. updateBy = json['updateBy'];
  403. type = json['type'];
  404. name = json['name'];
  405. telephone = json['telephone'];
  406. email = json['email'];
  407. gmfNsrsbm = json['gmfNsrsbm'];
  408. gmfMc = json['gmfMc'];
  409. gmfDz = json['gmfDz'];
  410. gmfDh = json['gmfDh'];
  411. gmfYh = json['gmfYh'];
  412. gmfZh = json['gmfZh'];
  413. userId = json['userId'];
  414. isDefault = json['isDefault'];
  415. enterpriseNumber = json['enterpriseNumber'];
  416. }
  417. Map<String, dynamic> toJson() {
  418. final Map<String, dynamic> data = new Map<String, dynamic>();
  419. data['id'] = this.id;
  420. data['createTime'] = this.createTime;
  421. data['createBy'] = this.createBy;
  422. data['updateTime'] = this.updateTime;
  423. data['updateBy'] = this.updateBy;
  424. data['type'] = this.type;
  425. data['name'] = this.name;
  426. data['telephone'] = this.telephone;
  427. data['email'] = this.email;
  428. data['gmfNsrsbm'] = this.gmfNsrsbm;
  429. data['gmfMc'] = this.gmfMc;
  430. data['gmfDz'] = this.gmfDz;
  431. data['gmfDh'] = this.gmfDh;
  432. data['gmfYh'] = this.gmfYh;
  433. data['gmfZh'] = this.gmfZh;
  434. data['userId'] = this.userId;
  435. data['isDefault'] = this.isDefault;
  436. data['enterpriseNumber'] = this.enterpriseNumber;
  437. return data;
  438. }
  439. }
  440. class LiftCaseEntity {
  441. int id;
  442. int createTime;
  443. String createBy;
  444. int updateTime;
  445. String updateBy;
  446. String expression;
  447. String usedMethods;
  448. String imgs;
  449. int brandId;
  450. String sessionId;
  451. String address;
  452. String chargerId;
  453. double travelCost;
  454. double serviceCost;
  455. double totalCost;
  456. int arrivedTime;
  457. int statuz;
  458. int acceptStatus;
  459. int arrivedFlag;
  460. String arrivedAddress;
  461. int dataTable;
  462. String createUserId;
  463. int customerServiceId;
  464. String name;
  465. String avatarUrl;
  466. String brandName;
  467. LiftCaseEntity(
  468. {this.id,
  469. this.createTime,
  470. this.createBy,
  471. this.updateTime,
  472. this.updateBy,
  473. this.expression,
  474. this.usedMethods,
  475. this.imgs,
  476. this.brandId,
  477. this.sessionId,
  478. this.address,
  479. this.chargerId,
  480. this.travelCost,
  481. this.serviceCost,
  482. this.totalCost,
  483. this.arrivedTime,
  484. this.statuz,
  485. this.acceptStatus,
  486. this.arrivedFlag,
  487. this.arrivedAddress,
  488. this.dataTable,
  489. this.createUserId,
  490. this.customerServiceId,
  491. this.name,
  492. this.avatarUrl,
  493. this.brandName});
  494. LiftCaseEntity.fromJson(Map<String, dynamic> json) {
  495. id = json['id'];
  496. createTime = json['createTime'];
  497. createBy = json['createBy'];
  498. updateTime = json['updateTime'];
  499. updateBy = json['updateBy'];
  500. expression = json['expression'];
  501. usedMethods = json['usedMethods'];
  502. imgs = json['imgs'];
  503. brandId = json['brandId'];
  504. sessionId = json['sessionId'];
  505. address = json['address'];
  506. chargerId = json['chargerId'];
  507. travelCost = json['travelCost'];
  508. serviceCost = json['serviceCost'];
  509. totalCost = json['totalCost'];
  510. arrivedTime = json['arrivedTime'];
  511. statuz = json['statuz'];
  512. acceptStatus = json['acceptStatus'];
  513. arrivedFlag = json['arrivedFlag'];
  514. arrivedAddress = json['arrivedAddress'];
  515. dataTable = json['dataTable'];
  516. createUserId = json['createUserId'];
  517. customerServiceId = json['customerServiceId'];
  518. name = json['name'];
  519. avatarUrl = json['avatarUrl'];
  520. brandName = json['brandName'];
  521. }
  522. Map<String, dynamic> toJson() {
  523. final Map<String, dynamic> data = new Map<String, dynamic>();
  524. data['id'] = this.id;
  525. data['createTime'] = this.createTime;
  526. data['createBy'] = this.createBy;
  527. data['updateTime'] = this.updateTime;
  528. data['updateBy'] = this.updateBy;
  529. data['expression'] = this.expression;
  530. data['usedMethods'] = this.usedMethods;
  531. data['imgs'] = this.imgs;
  532. data['brandId'] = this.brandId;
  533. data['sessionId'] = this.sessionId;
  534. data['address'] = this.address;
  535. data['chargerId'] = this.chargerId;
  536. data['travelCost'] = this.travelCost;
  537. data['serviceCost'] = this.serviceCost;
  538. data['totalCost'] = this.totalCost;
  539. data['arrivedTime'] = this.arrivedTime;
  540. data['statuz'] = this.statuz;
  541. data['acceptStatus'] = this.acceptStatus;
  542. data['arrivedFlag'] = this.arrivedFlag;
  543. data['arrivedAddress'] = this.arrivedAddress;
  544. data['dataTable'] = this.dataTable;
  545. data['createUserId'] = this.createUserId;
  546. data['customerServiceId'] = this.customerServiceId;
  547. data['name'] = this.name;
  548. data['avatarUrl'] = this.avatarUrl;
  549. data['brandName'] = this.brandName;
  550. return data;
  551. }
  552. }