mix_model.dart 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. class MixModel {
  2. List<Records> records;
  3. int total;
  4. int size;
  5. int current;
  6. bool searchCount;
  7. int pages;
  8. MixModel(
  9. {this.records,
  10. this.total,
  11. this.size,
  12. this.current,
  13. this.searchCount,
  14. this.pages});
  15. MixModel.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 uid;
  44. int createTime;
  45. String createBy;
  46. int updateTime;
  47. String updateBy;
  48. String title;
  49. String expression;
  50. String solution;
  51. String imgs;
  52. int brandId;
  53. int expert;
  54. double reward;
  55. int lockFlag;
  56. int hotFlag;
  57. int statuz;
  58. int favoriteNum;
  59. int likeNum;
  60. int browseNum;
  61. int tipNum;
  62. int examineFlag;
  63. String notExamineReason;
  64. int validPeriod;
  65. String userName;
  66. String brandName;
  67. String avatarUrl;
  68. int isLike;
  69. int isFavorite;
  70. String descr;
  71. String cover;
  72. String url;
  73. String userId;
  74. int payNum;
  75. int checkFlag;
  76. String checkComment;
  77. int platformFlag;
  78. String nickname;
  79. int favoriteId;
  80. int likeId;
  81. String job;
  82. double upperSalary;
  83. double lowerSalary;
  84. int upperWorking;
  85. int lowerWorking;
  86. int eduLevel;
  87. String address;
  88. int companyId;
  89. String info;
  90. int sort;
  91. String reason;
  92. String typeName;
  93. String eduName;
  94. Company company;
  95. int isApply;
  96. String name;
  97. double price;
  98. String manufacturer;
  99. String telephone;
  100. String bname;
  101. String provinceName;
  102. String cityName;
  103. String companyName;
  104. String sname;
  105. Records(
  106. {
  107. this.id,
  108. this.uid,
  109. this.createTime,
  110. this.createBy,
  111. this.updateTime,
  112. this.updateBy,
  113. this.title,
  114. this.expression,
  115. this.solution,
  116. this.imgs,
  117. this.brandId,
  118. this.expert,
  119. this.reward,
  120. this.lockFlag,
  121. this.hotFlag,
  122. this.statuz,
  123. this.favoriteNum,
  124. this.likeNum,
  125. this.browseNum,
  126. this.tipNum,
  127. this.examineFlag,
  128. this.notExamineReason,
  129. this.validPeriod,
  130. this.userName,
  131. this.brandName,
  132. this.avatarUrl,
  133. this.isLike,
  134. this.isFavorite,
  135. this.descr,
  136. this.cover,
  137. this.url,
  138. this.userId,
  139. this.payNum,
  140. this.checkFlag,
  141. this.checkComment,
  142. this.platformFlag,
  143. this.nickname,
  144. this.favoriteId,
  145. this.likeId,
  146. this.job,
  147. this.upperSalary,
  148. this.lowerSalary,
  149. this.upperWorking,
  150. this.lowerWorking,
  151. this.eduLevel,
  152. this.address,
  153. this.companyId,
  154. this.info,
  155. this.sort,
  156. this.reason,
  157. this.typeName,
  158. this.eduName,
  159. this.company,
  160. this.isApply,
  161. this.name,
  162. this.price,
  163. this.manufacturer,
  164. this.telephone,
  165. this.bname,
  166. this.provinceName,
  167. this.cityName,
  168. this.companyName,
  169. this.sname,
  170. });
  171. Records.fromJson(Map<String, dynamic> json) {
  172. id = json['id'];
  173. sname = json['sname'];
  174. uid = json['uid'];
  175. createTime = json['createTime'];
  176. createBy = json['createBy'];
  177. updateTime = json['updateTime'];
  178. updateBy = json['updateBy'];
  179. title = json['title'];
  180. expression = json['expression'];
  181. solution = json['solution'];
  182. imgs = json['imgs'];
  183. brandId = json['brandId'];
  184. expert = json['expert'];
  185. reward = json['reward'];
  186. lockFlag = json['lockFlag'];
  187. hotFlag = json['hotFlag'];
  188. statuz = json['statuz'];
  189. favoriteNum = json['favoriteNum'];
  190. likeNum = json['likeNum'];
  191. browseNum = json['browseNum'];
  192. tipNum = json['tipNum'];
  193. examineFlag = json['examineFlag'];
  194. notExamineReason = json['notExamineReason'];
  195. validPeriod = json['validPeriod'];
  196. userName = json['userName'];
  197. brandName = json['brandName'];
  198. avatarUrl = json['avatarUrl'];
  199. isLike = json['isLike'];
  200. isFavorite = json['isFavorite'];
  201. descr = json['descr'];
  202. cover = json['cover'];
  203. url = json['url'];
  204. userId = json['userId'];
  205. payNum = json['payNum'];
  206. checkFlag = json['checkFlag'];
  207. checkComment = json['checkComment'];
  208. platformFlag = json['platformFlag'];
  209. nickname = json['nickname'];
  210. favoriteId = json['favoriteId'];
  211. likeId = json['likeId'];
  212. job = json['job'];
  213. upperSalary = json['upperSalary'];
  214. lowerSalary = json['lowerSalary'];
  215. upperWorking = json['upperWorking'];
  216. lowerWorking = json['lowerWorking'];
  217. eduLevel = json['eduLevel'];
  218. address = json['address'];
  219. companyId = json['companyId'];
  220. info = json['info'];
  221. sort = json['sort'];
  222. reason = json['reason'];
  223. typeName = json['typeName'];
  224. eduName = json['eduName'];
  225. company =
  226. json['company'] != null ? new Company.fromJson(json['company']) : null;
  227. isApply = json['isApply'];
  228. name = json['name'];
  229. price = json['price'];
  230. manufacturer = json['manufacturer'];
  231. telephone = json['telephone'];
  232. bname = json['bname'];
  233. provinceName = json['provinceName'];
  234. cityName = json['cityName'];
  235. companyName = json['companyName'];
  236. }
  237. Map<String, dynamic> toJson() {
  238. final Map<String, dynamic> data = new Map<String, dynamic>();
  239. data['companyName'] = this.companyName;
  240. data['id'] = this.id;
  241. data['uid'] = this.uid;
  242. data['createTime'] = this.createTime;
  243. data['createBy'] = this.createBy;
  244. data['updateTime'] = this.updateTime;
  245. data['updateBy'] = this.updateBy;
  246. data['title'] = this.title;
  247. data['expression'] = this.expression;
  248. data['solution'] = this.solution;
  249. data['imgs'] = this.imgs;
  250. data['brandId'] = this.brandId;
  251. data['expert'] = this.expert;
  252. data['reward'] = this.reward;
  253. data['lockFlag'] = this.lockFlag;
  254. data['hotFlag'] = this.hotFlag;
  255. data['statuz'] = this.statuz;
  256. data['favoriteNum'] = this.favoriteNum;
  257. data['likeNum'] = this.likeNum;
  258. data['browseNum'] = this.browseNum;
  259. data['tipNum'] = this.tipNum;
  260. data['examineFlag'] = this.examineFlag;
  261. data['notExamineReason'] = this.notExamineReason;
  262. data['validPeriod'] = this.validPeriod;
  263. data['userName'] = this.userName;
  264. data['brandName'] = this.brandName;
  265. data['avatarUrl'] = this.avatarUrl;
  266. data['isLike'] = this.isLike;
  267. data['isFavorite'] = this.isFavorite;
  268. data['descr'] = this.descr;
  269. data['cover'] = this.cover;
  270. data['url'] = this.url;
  271. data['userId'] = this.userId;
  272. data['payNum'] = this.payNum;
  273. data['checkFlag'] = this.checkFlag;
  274. data['checkComment'] = this.checkComment;
  275. data['platformFlag'] = this.platformFlag;
  276. data['nickname'] = this.nickname;
  277. data['favoriteId'] = this.favoriteId;
  278. data['likeId'] = this.likeId;
  279. data['job'] = this.job;
  280. data['upperSalary'] = this.upperSalary;
  281. data['lowerSalary'] = this.lowerSalary;
  282. data['upperWorking'] = this.upperWorking;
  283. data['lowerWorking'] = this.lowerWorking;
  284. data['eduLevel'] = this.eduLevel;
  285. data['address'] = this.address;
  286. data['companyId'] = this.companyId;
  287. data['info'] = this.info;
  288. data['sort'] = this.sort;
  289. data['reason'] = this.reason;
  290. data['typeName'] = this.typeName;
  291. data['eduName'] = this.eduName;
  292. if (this.company != null) {
  293. data['company'] = this.company.toJson();
  294. }
  295. data['isApply'] = this.isApply;
  296. data['name'] = this.name;
  297. data['price'] = this.price;
  298. data['manufacturer'] = this.manufacturer;
  299. data['telephone'] = this.telephone;
  300. data['bname'] = this.bname;
  301. data['provinceName'] = this.provinceName;
  302. data['cityName'] = this.cityName;
  303. data['sname'] = this.sname;
  304. return data;
  305. }
  306. }
  307. class Company {
  308. int id;
  309. int createTime;
  310. String createBy;
  311. int updateTime;
  312. String updateBy;
  313. String name;
  314. String address;
  315. String corporator;
  316. String telephone;
  317. String mainbusiness;
  318. int type;
  319. String companySize;
  320. Company(
  321. {this.id,
  322. this.createTime,
  323. this.createBy,
  324. this.updateTime,
  325. this.updateBy,
  326. this.name,
  327. this.address,
  328. this.corporator,
  329. this.telephone,
  330. this.mainbusiness,
  331. this.type,
  332. this.companySize});
  333. Company.fromJson(Map<String, dynamic> json) {
  334. id = json['id'];
  335. createTime = json['createTime'];
  336. createBy = json['createBy'];
  337. updateTime = json['updateTime'];
  338. updateBy = json['updateBy'];
  339. name = json['name'];
  340. address = json['address'];
  341. corporator = json['corporator'];
  342. telephone = json['telephone'];
  343. mainbusiness = json['mainbusiness'];
  344. type = json['type'];
  345. companySize = json['companySize'];
  346. }
  347. Map<String, dynamic> toJson() {
  348. final Map<String, dynamic> data = new Map<String, dynamic>();
  349. data['id'] = this.id;
  350. data['createTime'] = this.createTime;
  351. data['createBy'] = this.createBy;
  352. data['updateTime'] = this.updateTime;
  353. data['updateBy'] = this.updateBy;
  354. data['name'] = this.name;
  355. data['address'] = this.address;
  356. data['corporator'] = this.corporator;
  357. data['telephone'] = this.telephone;
  358. data['mainbusiness'] = this.mainbusiness;
  359. data['type'] = this.type;
  360. data['companySize'] = this.companySize;
  361. return data;
  362. }
  363. }