means_model.dart 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. class MeansModel {
  2. List<MeansDetailModel> records;
  3. int total;
  4. int size;
  5. int current;
  6. bool searchCount;
  7. int pages;
  8. MeansModel(
  9. {this.records,
  10. this.total,
  11. this.size,
  12. this.current,
  13. this.searchCount,
  14. this.pages});
  15. MeansModel.fromJson(Map<String, dynamic> json) {
  16. if (json['records'] != null) {
  17. records = new List<MeansDetailModel>();
  18. json['records'].forEach((v) {
  19. records.add(new MeansDetailModel.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 MeansDetailModel {
  42. int id;
  43. int createTime;
  44. Null createBy;
  45. int updateTime;
  46. Null updateBy;
  47. int brandId;
  48. int dataTable;
  49. int dataId;
  50. int catagoryId;
  51. String name;
  52. String url;
  53. int statuz;
  54. int browseNum;
  55. int downloadNum;
  56. String brandName;
  57. String catagoryName;
  58. String dataTableName;
  59. MeansDetailModel(
  60. {this.id,
  61. this.createTime,
  62. this.createBy,
  63. this.updateTime,
  64. this.updateBy,
  65. this.brandId,
  66. this.dataTable,
  67. this.dataId,
  68. this.catagoryId,
  69. this.name,
  70. this.url,
  71. this.statuz,
  72. this.browseNum,
  73. this.downloadNum,
  74. this.brandName,
  75. this.catagoryName,
  76. this.dataTableName});
  77. MeansDetailModel.fromJson(Map<String, dynamic> json) {
  78. id = json['id'];
  79. createTime = json['createTime'];
  80. createBy = json['createBy'];
  81. updateTime = json['updateTime'];
  82. updateBy = json['updateBy'];
  83. brandId = json['brandId'];
  84. dataTable = json['dataTable'];
  85. dataId = json['dataId'];
  86. catagoryId = json['catagoryId'];
  87. name = json['name'];
  88. url = json['url'];
  89. statuz = json['statuz'];
  90. browseNum = json['browseNum'];
  91. downloadNum = json['downloadNum'];
  92. brandName = json['brandName'];
  93. catagoryName = json['catagoryName'];
  94. dataTableName = json['dataTableName'];
  95. }
  96. Map<String, dynamic> toJson() {
  97. final Map<String, dynamic> data = new Map<String, dynamic>();
  98. data['id'] = this.id;
  99. data['createTime'] = this.createTime;
  100. data['createBy'] = this.createBy;
  101. data['updateTime'] = this.updateTime;
  102. data['updateBy'] = this.updateBy;
  103. data['brandId'] = this.brandId;
  104. data['dataTable'] = this.dataTable;
  105. data['dataId'] = this.dataId;
  106. data['catagoryId'] = this.catagoryId;
  107. data['name'] = this.name;
  108. data['url'] = this.url;
  109. data['statuz'] = this.statuz;
  110. data['browseNum'] = this.browseNum;
  111. data['downloadNum'] = this.downloadNum;
  112. data['brandName'] = this.brandName;
  113. data['catagoryName'] = this.catagoryName;
  114. data['dataTableName'] = this.dataTableName;
  115. return data;
  116. }
  117. }
  118. // class MeansModel {
  119. // List<MeansDetailModel> records;
  120. // int total;
  121. // int size;
  122. // int current;
  123. // bool searchCount;
  124. // int pages;
  125. // MeansModel(
  126. // {this.records,
  127. // this.total,
  128. // this.size,
  129. // this.current,
  130. // this.searchCount,
  131. // this.pages});
  132. // MeansModel.fromJson(Map<String, dynamic> json) {
  133. // if (json['records'] != null) {
  134. // records = new List<MeansDetailModel>();
  135. // json['records'].forEach((v) {
  136. // records.add(new MeansDetailModel.fromJson(v));
  137. // });
  138. // }
  139. // total = json['total'];
  140. // size = json['size'];
  141. // current = json['current'];
  142. // searchCount = json['searchCount'];
  143. // pages = json['pages'];
  144. // }
  145. // Map<String, dynamic> toJson() {
  146. // final Map<String, dynamic> data = new Map<String, dynamic>();
  147. // if (this.records != null) {
  148. // data['records'] = this.records.map((v) => v.toJson()).toList();
  149. // }
  150. // data['total'] = this.total;
  151. // data['size'] = this.size;
  152. // data['current'] = this.current;
  153. // data['searchCount'] = this.searchCount;
  154. // data['pages'] = this.pages;
  155. // return data;
  156. // }
  157. // }
  158. // class MeansDetailModel {
  159. // int id;
  160. // int createTime;
  161. // Null createBy;
  162. // int updateTime;
  163. // Null updateBy;
  164. // Null brandId;
  165. // int dataTable;
  166. // Null dataId;
  167. // Null catagoryId;
  168. // String name;
  169. // String url;
  170. // int statuz;
  171. // int browseNum;
  172. // int downloadNum;
  173. // Null brandName;
  174. // Null catagoryName;
  175. // String dataTableName;
  176. // MeansDetailModel(
  177. // {this.id,
  178. // this.createTime,
  179. // this.createBy,
  180. // this.updateTime,
  181. // this.updateBy,
  182. // this.brandId,
  183. // this.dataTable,
  184. // this.dataId,
  185. // this.catagoryId,
  186. // this.name,
  187. // this.url,
  188. // this.statuz,
  189. // this.browseNum,
  190. // this.downloadNum,
  191. // this.brandName,
  192. // this.catagoryName,
  193. // this.dataTableName});
  194. // MeansDetailModel.fromJson(Map<String, dynamic> json) {
  195. // id = json['id'];
  196. // createTime = json['createTime'];
  197. // createBy = json['createBy'];
  198. // updateTime = json['updateTime'];
  199. // updateBy = json['updateBy'];
  200. // brandId = json['brandId'];
  201. // dataTable = json['dataTable'];
  202. // dataId = json['dataId'];
  203. // catagoryId = json['catagoryId'];
  204. // name = json['name'];
  205. // url = json['url'];
  206. // statuz = json['statuz'];
  207. // browseNum = json['browseNum'];
  208. // downloadNum = json['downloadNum'];
  209. // brandName = json['brandName'];
  210. // catagoryName = json['catagoryName'];
  211. // dataTableName = json['dataTableName'];
  212. // }
  213. // Map<String, dynamic> toJson() {
  214. // final Map<String, dynamic> data = new Map<String, dynamic>();
  215. // data['id'] = this.id;
  216. // data['createTime'] = this.createTime;
  217. // data['createBy'] = this.createBy;
  218. // data['updateTime'] = this.updateTime;
  219. // data['updateBy'] = this.updateBy;
  220. // data['brandId'] = this.brandId;
  221. // data['dataTable'] = this.dataTable;
  222. // data['dataId'] = this.dataId;
  223. // data['catagoryId'] = this.catagoryId;
  224. // data['name'] = this.name;
  225. // data['url'] = this.url;
  226. // data['statuz'] = this.statuz;
  227. // data['browseNum'] = this.browseNum;
  228. // data['downloadNum'] = this.downloadNum;
  229. // data['brandName'] = this.brandName;
  230. // data['catagoryName'] = this.catagoryName;
  231. // data['dataTableName'] = this.dataTableName;
  232. // return data;
  233. // }
  234. // }