control_model.dart 6.4 KB

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