invoices_model.dart 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. class InvoicesModel {
  2. List<InvoicesDetailModel> records;
  3. int total;
  4. int size;
  5. int current;
  6. bool searchCount;
  7. int pages;
  8. InvoicesModel(
  9. {this.records,
  10. this.total,
  11. this.size,
  12. this.current,
  13. this.searchCount,
  14. this.pages});
  15. InvoicesModel.fromJson(Map<String, dynamic> json) {
  16. if (json['records'] != null) {
  17. records = new List<InvoicesDetailModel>();
  18. json['records'].forEach((v) {
  19. records.add(new InvoicesDetailModel.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 InvoicesDetailModel {
  42. String bz;
  43. int checkFlag;
  44. String createBy;
  45. int createTime;
  46. String dm;
  47. String email;
  48. String ewm;
  49. String fhr;
  50. String fpmw;
  51. String fpqqlsh;
  52. String gmfDh;
  53. String gmfDz;
  54. String gmfMc;
  55. String gmfNsrsbm;
  56. String gmfYh;
  57. int hjje;
  58. int hjse;
  59. String hm;
  60. int id;
  61. List<InvoiceImg> invoiceImg;
  62. List<InvoiceItem> invoiceItem;
  63. int jshj;
  64. String jym;
  65. String kplx;
  66. String kpr;
  67. int kqrq;
  68. String reason;
  69. String skr;
  70. int statuz;
  71. int type;
  72. String updateBy;
  73. int updateTime;
  74. int userId;
  75. int userInvoiceId;
  76. InvoicesDetailModel(
  77. {this.bz,
  78. this.checkFlag,
  79. this.createBy,
  80. this.createTime,
  81. this.dm,
  82. this.email,
  83. this.ewm,
  84. this.fhr,
  85. this.fpmw,
  86. this.fpqqlsh,
  87. this.gmfDh,
  88. this.gmfDz,
  89. this.gmfMc,
  90. this.gmfNsrsbm,
  91. this.gmfYh,
  92. this.hjje,
  93. this.hjse,
  94. this.hm,
  95. this.id,
  96. this.invoiceImg,
  97. this.invoiceItem,
  98. this.jshj,
  99. this.jym,
  100. this.kplx,
  101. this.kpr,
  102. this.kqrq,
  103. this.reason,
  104. this.skr,
  105. this.statuz,
  106. this.type,
  107. this.updateBy,
  108. this.updateTime,
  109. this.userId,
  110. this.userInvoiceId});
  111. InvoicesDetailModel.fromJson(Map<String, dynamic> json) {
  112. bz = json['bz'];
  113. checkFlag = json['checkFlag'];
  114. createBy = json['createBy'];
  115. createTime = json['createTime'];
  116. dm = json['dm'];
  117. email = json['email'];
  118. ewm = json['ewm'];
  119. fhr = json['fhr'];
  120. fpmw = json['fpmw'];
  121. fpqqlsh = json['fpqqlsh'];
  122. gmfDh = json['gmfDh'];
  123. gmfDz = json['gmfDz'];
  124. gmfMc = json['gmfMc'];
  125. gmfNsrsbm = json['gmfNsrsbm'];
  126. gmfYh = json['gmfYh'];
  127. hjje = json['hjje'];
  128. hjse = json['hjse'];
  129. hm = json['hm'];
  130. id = json['id'];
  131. if (json['invoiceImg'] != null) {
  132. invoiceImg = new List<InvoiceImg>();
  133. json['invoiceImg'].forEach((v) {
  134. invoiceImg.add(new InvoiceImg.fromJson(v));
  135. });
  136. }
  137. if (json['invoiceItem'] != null) {
  138. invoiceItem = new List<InvoiceItem>();
  139. json['invoiceItem'].forEach((v) {
  140. invoiceItem.add(new InvoiceItem.fromJson(v));
  141. });
  142. }
  143. jshj = json['jshj'];
  144. jym = json['jym'];
  145. kplx = json['kplx'];
  146. kpr = json['kpr'];
  147. kqrq = json['kqrq'];
  148. reason = json['reason'];
  149. skr = json['skr'];
  150. statuz = json['statuz'];
  151. type = json['type'];
  152. updateBy = json['updateBy'];
  153. updateTime = json['updateTime'];
  154. userId = json['userId'];
  155. userInvoiceId = json['userInvoiceId'];
  156. }
  157. Map<String, dynamic> toJson() {
  158. final Map<String, dynamic> data = new Map<String, dynamic>();
  159. data['bz'] = this.bz;
  160. data['checkFlag'] = this.checkFlag;
  161. data['createBy'] = this.createBy;
  162. data['createTime'] = this.createTime;
  163. data['dm'] = this.dm;
  164. data['email'] = this.email;
  165. data['ewm'] = this.ewm;
  166. data['fhr'] = this.fhr;
  167. data['fpmw'] = this.fpmw;
  168. data['fpqqlsh'] = this.fpqqlsh;
  169. data['gmfDh'] = this.gmfDh;
  170. data['gmfDz'] = this.gmfDz;
  171. data['gmfMc'] = this.gmfMc;
  172. data['gmfNsrsbm'] = this.gmfNsrsbm;
  173. data['gmfYh'] = this.gmfYh;
  174. data['hjje'] = this.hjje;
  175. data['hjse'] = this.hjse;
  176. data['hm'] = this.hm;
  177. data['id'] = this.id;
  178. if (this.invoiceImg != null) {
  179. data['invoiceImg'] = this.invoiceImg.map((v) => v.toJson()).toList();
  180. }
  181. if (this.invoiceItem != null) {
  182. data['invoiceItem'] = this.invoiceItem.map((v) => v.toJson()).toList();
  183. }
  184. data['jshj'] = this.jshj;
  185. data['jym'] = this.jym;
  186. data['kplx'] = this.kplx;
  187. data['kpr'] = this.kpr;
  188. data['kqrq'] = this.kqrq;
  189. data['reason'] = this.reason;
  190. data['skr'] = this.skr;
  191. data['statuz'] = this.statuz;
  192. data['type'] = this.type;
  193. data['updateBy'] = this.updateBy;
  194. data['updateTime'] = this.updateTime;
  195. data['userId'] = this.userId;
  196. data['userInvoiceId'] = this.userInvoiceId;
  197. return data;
  198. }
  199. }
  200. class InvoiceImg {
  201. String base64Code;
  202. String createBy;
  203. int createTime;
  204. String dataId;
  205. int id;
  206. String updateBy;
  207. int updateTime;
  208. String url;
  209. InvoiceImg(
  210. {this.base64Code,
  211. this.createBy,
  212. this.createTime,
  213. this.dataId,
  214. this.id,
  215. this.updateBy,
  216. this.updateTime,
  217. this.url});
  218. InvoiceImg.fromJson(Map<String, dynamic> json) {
  219. base64Code = json['base64Code'];
  220. createBy = json['createBy'];
  221. createTime = json['createTime'];
  222. dataId = json['dataId'];
  223. id = json['id'];
  224. updateBy = json['updateBy'];
  225. updateTime = json['updateTime'];
  226. url = json['url'];
  227. }
  228. Map<String, dynamic> toJson() {
  229. final Map<String, dynamic> data = new Map<String, dynamic>();
  230. data['base64Code'] = this.base64Code;
  231. data['createBy'] = this.createBy;
  232. data['createTime'] = this.createTime;
  233. data['dataId'] = this.dataId;
  234. data['id'] = this.id;
  235. data['updateBy'] = this.updateBy;
  236. data['updateTime'] = this.updateTime;
  237. data['url'] = this.url;
  238. return data;
  239. }
  240. }
  241. class InvoiceItem {
  242. String createBy;
  243. int createTime;
  244. int dataId;
  245. int dataType;
  246. String dw;
  247. int fphxz;
  248. String ggxh;
  249. int id;
  250. int invoiceId;
  251. int se;
  252. int sl;
  253. String updateBy;
  254. int updateTime;
  255. int xmdj;
  256. String xmmc;
  257. int xmsl;
  258. int xmze;
  259. InvoiceItem(
  260. {this.createBy,
  261. this.createTime,
  262. this.dataId,
  263. this.dataType,
  264. this.dw,
  265. this.fphxz,
  266. this.ggxh,
  267. this.id,
  268. this.invoiceId,
  269. this.se,
  270. this.sl,
  271. this.updateBy,
  272. this.updateTime,
  273. this.xmdj,
  274. this.xmmc,
  275. this.xmsl,
  276. this.xmze});
  277. InvoiceItem.fromJson(Map<String, dynamic> json) {
  278. createBy = json['createBy'];
  279. createTime = json['createTime'];
  280. dataId = json['dataId'];
  281. dataType = json['dataType'];
  282. dw = json['dw'];
  283. fphxz = json['fphxz'];
  284. ggxh = json['ggxh'];
  285. id = json['id'];
  286. invoiceId = json['invoiceId'];
  287. se = json['se'];
  288. sl = json['sl'];
  289. updateBy = json['updateBy'];
  290. updateTime = json['updateTime'];
  291. xmdj = json['xmdj'];
  292. xmmc = json['xmmc'];
  293. xmsl = json['xmsl'];
  294. xmze = json['xmze'];
  295. }
  296. Map<String, dynamic> toJson() {
  297. final Map<String, dynamic> data = new Map<String, dynamic>();
  298. data['createBy'] = this.createBy;
  299. data['createTime'] = this.createTime;
  300. data['dataId'] = this.dataId;
  301. data['dataType'] = this.dataType;
  302. data['dw'] = this.dw;
  303. data['fphxz'] = this.fphxz;
  304. data['ggxh'] = this.ggxh;
  305. data['id'] = this.id;
  306. data['invoiceId'] = this.invoiceId;
  307. data['se'] = this.se;
  308. data['sl'] = this.sl;
  309. data['updateBy'] = this.updateBy;
  310. data['updateTime'] = this.updateTime;
  311. data['xmdj'] = this.xmdj;
  312. data['xmmc'] = this.xmmc;
  313. data['xmsl'] = this.xmsl;
  314. data['xmze'] = this.xmze;
  315. return data;
  316. }
  317. }