search_model.dart 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. // class SearchModel {
  2. // String code;
  3. // List<InfoList> infoList;
  4. // SearchModel({this.code, this.infoList});
  5. // SearchModel.fromJson(Map<String, dynamic> json) {
  6. // if(json['code'] != null){
  7. // code = json['code'];
  8. // }
  9. // if (json['infoList'] != null) {
  10. // infoList = new List<InfoList>();
  11. // json['infoList'].forEach((v) {
  12. // infoList.add(new InfoList.fromJson(v));
  13. // });
  14. // }
  15. // }
  16. // Map<String, dynamic> toJson() {
  17. // final Map<String, dynamic> data = new Map<String, dynamic>();
  18. // if(this.code != null){
  19. // data['code'] = this.code;
  20. // }
  21. // if (this.infoList != null) {
  22. // data['infoList'] = this.infoList.map((v) => v.toJson()).toList();
  23. // }
  24. // return data;
  25. // }
  26. // }
  27. // class InfoList {
  28. // int id;
  29. // int createTime;
  30. // String createBy;
  31. // int updateTime;
  32. // String updateBy;
  33. // String title;
  34. // String expression;
  35. // String solution;
  36. // String imgs;
  37. // int brandId;
  38. // int expert;
  39. // double reward;
  40. // int lockFlag;
  41. // int hotFlag;
  42. // int statuz;
  43. // int favoriteNum;
  44. // int likeNum;
  45. // int browseNum;
  46. // int tipNum;
  47. // int examineFlag;
  48. // String notExamineReason;
  49. // int validPeriod;
  50. // String userName;
  51. // String brandName;
  52. // String avatarUrl;
  53. // int isLike;
  54. // int isFavorite;
  55. // InfoList(
  56. // {this.id,
  57. // this.createTime,
  58. // this.createBy,
  59. // this.updateTime,
  60. // this.updateBy,
  61. // this.title,
  62. // this.expression,
  63. // this.solution,
  64. // this.imgs,
  65. // this.brandId,
  66. // this.expert,
  67. // this.reward,
  68. // this.lockFlag,
  69. // this.hotFlag,
  70. // this.statuz,
  71. // this.favoriteNum,
  72. // this.likeNum,
  73. // this.browseNum,
  74. // this.tipNum,
  75. // this.examineFlag,
  76. // this.notExamineReason,
  77. // this.validPeriod,
  78. // this.userName,
  79. // this.brandName,
  80. // this.avatarUrl,
  81. // this.isLike,
  82. // this.isFavorite});
  83. // InfoList.fromJson(Map<String, dynamic> json) {
  84. // id = json['id'];
  85. // createTime = json['createTime'];
  86. // createBy = json['createBy'];
  87. // updateTime = json['updateTime'];
  88. // updateBy = json['updateBy'];
  89. // title = json['title'];
  90. // expression = json['expression'];
  91. // solution = json['solution'];
  92. // imgs = json['imgs'];
  93. // brandId = json['brandId'];
  94. // expert = json['expert'];
  95. // reward = json['reward'];
  96. // lockFlag = json['lockFlag'];
  97. // hotFlag = json['hotFlag'];
  98. // statuz = json['statuz'];
  99. // favoriteNum = json['favoriteNum'];
  100. // likeNum = json['likeNum'];
  101. // browseNum = json['browseNum'];
  102. // tipNum = json['tipNum'];
  103. // examineFlag = json['examineFlag'];
  104. // notExamineReason = json['notExamineReason'];
  105. // validPeriod = json['validPeriod'];
  106. // userName = json['userName'];
  107. // brandName = json['brandName'];
  108. // avatarUrl = json['avatarUrl'];
  109. // isLike = json['isLike'];
  110. // isFavorite = json['isFavorite'];
  111. // }
  112. // Map<String, dynamic> toJson() {
  113. // final Map<String, dynamic> data = new Map<String, dynamic>();
  114. // data['id'] = this.id;
  115. // data['createTime'] = this.createTime;
  116. // data['createBy'] = this.createBy;
  117. // data['updateTime'] = this.updateTime;
  118. // data['updateBy'] = this.updateBy;
  119. // data['title'] = this.title;
  120. // data['expression'] = this.expression;
  121. // data['solution'] = this.solution;
  122. // data['imgs'] = this.imgs;
  123. // data['brandId'] = this.brandId;
  124. // data['expert'] = this.expert;
  125. // data['reward'] = this.reward;
  126. // data['lockFlag'] = this.lockFlag;
  127. // data['hotFlag'] = this.hotFlag;
  128. // data['statuz'] = this.statuz;
  129. // data['favoriteNum'] = this.favoriteNum;
  130. // data['likeNum'] = this.likeNum;
  131. // data['browseNum'] = this.browseNum;
  132. // data['tipNum'] = this.tipNum;
  133. // data['examineFlag'] = this.examineFlag;
  134. // data['notExamineReason'] = this.notExamineReason;
  135. // data['validPeriod'] = this.validPeriod;
  136. // data['userName'] = this.userName;
  137. // data['brandName'] = this.brandName;
  138. // data['avatarUrl'] = this.avatarUrl;
  139. // data['isLike'] = this.isLike;
  140. // data['isFavorite'] = this.isFavorite;
  141. // return data;
  142. // }
  143. // }
  144. class SearchModel {
  145. String code;
  146. List<InfoList> infoList;
  147. SearchModel({this.code, this.infoList});
  148. SearchModel.fromJson(Map<String, dynamic> json) {
  149. if (json['code'] != null) {
  150. code = json['code'];
  151. }
  152. if (json['infoList'] != null) {
  153. infoList = new List<InfoList>();
  154. json['infoList'].forEach((v) {
  155. infoList.add(new InfoList.fromJson(v));
  156. });
  157. }
  158. }
  159. Map<String, dynamic> toJson() {
  160. final Map<String, dynamic> data = new Map<String, dynamic>();
  161. if (this.code != null) {
  162. data['code'] = this.code;
  163. }
  164. if (this.infoList != null) {
  165. data['infoList'] = this.infoList.map((v) => v.toJson()).toList();
  166. }
  167. return data;
  168. }
  169. }
  170. class InfoList {
  171. int id;
  172. int createTime;
  173. String createBy;
  174. int updateTime;
  175. String updateBy;
  176. String title;
  177. String expression;
  178. String solution;
  179. String imgs;
  180. int brandId;
  181. int expert;
  182. double reward;
  183. int lockFlag;
  184. int hotFlag;
  185. int statuz;
  186. int favoriteNum;
  187. int likeNum;
  188. int browseNum;
  189. int lookNum;
  190. String releaseUser;
  191. int tipNum;
  192. int examineFlag;
  193. String notExamineReason;
  194. int validPeriod;
  195. String userName;
  196. String brandName;
  197. String avatarUrl;
  198. int isLike;
  199. int isFavorite;
  200. String descr;
  201. String cover;
  202. String url;
  203. String userId;
  204. int payNum;
  205. int checkFlag;
  206. String checkComment;
  207. int platformFlag;
  208. String nickname;
  209. int favoriteId;
  210. int likeId;
  211. String job;
  212. double upperSalary;
  213. double lowerSalary;
  214. int upperWorking;
  215. int lowerWorking;
  216. int eduLevel;
  217. String address;
  218. int companyId;
  219. String info;
  220. int sort;
  221. String reason;
  222. String typeName;
  223. String eduName;
  224. Company company;
  225. int isApply;
  226. String name;
  227. double price;
  228. double discountPrice;
  229. String manufacturer;
  230. String telephone;
  231. String provinceName;
  232. String cityName;
  233. InfoList(
  234. {this.id,
  235. this.createTime,
  236. this.provinceName,
  237. this.cityName,
  238. this.createBy,
  239. this.updateTime,
  240. this.updateBy,
  241. this.title,
  242. this.expression,
  243. this.solution,
  244. this.imgs,
  245. this.brandId,
  246. this.expert,
  247. this.reward,
  248. this.lockFlag,
  249. this.hotFlag,
  250. this.statuz,
  251. this.favoriteNum,
  252. this.likeNum,
  253. this.browseNum,
  254. this.lookNum,
  255. this.releaseUser,
  256. this.tipNum,
  257. this.examineFlag,
  258. this.notExamineReason,
  259. this.validPeriod,
  260. this.userName,
  261. this.brandName,
  262. this.avatarUrl,
  263. this.isLike,
  264. this.isFavorite,
  265. this.descr,
  266. this.cover,
  267. this.url,
  268. this.userId,
  269. this.payNum,
  270. this.checkFlag,
  271. this.checkComment,
  272. this.platformFlag,
  273. this.nickname,
  274. this.favoriteId,
  275. this.likeId,
  276. this.job,
  277. this.upperSalary,
  278. this.lowerSalary,
  279. this.upperWorking,
  280. this.lowerWorking,
  281. this.eduLevel,
  282. this.address,
  283. this.companyId,
  284. this.info,
  285. this.sort,
  286. this.reason,
  287. this.typeName,
  288. this.eduName,
  289. this.company,
  290. this.isApply,
  291. this.name,
  292. this.price,
  293. this.discountPrice,
  294. this.manufacturer,
  295. this.telephone});
  296. InfoList.fromJson(Map<String, dynamic> json) {
  297. id = json['id'];
  298. createTime = json['createTime'];
  299. provinceName = json['provinceName'];
  300. cityName = json['cityName'];
  301. createBy = json['createBy'];
  302. updateTime = json['updateTime'];
  303. updateBy = json['updateBy'];
  304. title = json['title'];
  305. expression = json['expression'];
  306. solution = json['solution'];
  307. imgs = json['imgs'];
  308. brandId = json['brandId'];
  309. expert = json['expert'];
  310. reward = json['reward'];
  311. lockFlag = json['lockFlag'];
  312. hotFlag = json['hotFlag'];
  313. statuz = json['statuz'];
  314. favoriteNum = json['favoriteNum'];
  315. likeNum = json['likeNum'];
  316. browseNum = json['browseNum'];
  317. lookNum = json['lookNum'];
  318. releaseUser = json['releaseUser'];
  319. tipNum = json['tipNum'];
  320. examineFlag = json['examineFlag'];
  321. notExamineReason = json['notExamineReason'];
  322. validPeriod = json['validPeriod'];
  323. userName = json['userName'];
  324. brandName = json['brandName'];
  325. avatarUrl = json['avatarUrl'];
  326. isLike = json['isLike'];
  327. isFavorite = json['isFavorite'];
  328. descr = json['descr'];
  329. cover = json['cover'];
  330. url = json['url'];
  331. userId = json['userId'];
  332. payNum = json['payNum'];
  333. checkFlag = json['checkFlag'];
  334. checkComment = json['checkComment'];
  335. platformFlag = json['platformFlag'];
  336. nickname = json['nickname'];
  337. favoriteId = json['favoriteId'];
  338. likeId = json['likeId'];
  339. job = json['job'];
  340. upperSalary = json['upperSalary'];
  341. lowerSalary = json['lowerSalary'];
  342. upperWorking = json['upperWorking'];
  343. lowerWorking = json['lowerWorking'];
  344. eduLevel = json['eduLevel'];
  345. address = json['address'];
  346. companyId = json['companyId'];
  347. info = json['info'];
  348. sort = json['sort'];
  349. reason = json['reason'];
  350. typeName = json['typeName'];
  351. eduName = json['eduName'];
  352. company =
  353. json['company'] != null ? new Company.fromJson(json['company']) : null;
  354. isApply = json['isApply'];
  355. name = json['name'];
  356. price = json['price'];
  357. discountPrice = json['discountPrice'];
  358. manufacturer = json['manufacturer'];
  359. telephone = json['telephone'];
  360. }
  361. Map<String, dynamic> toJson() {
  362. final Map<String, dynamic> data = new Map<String, dynamic>();
  363. data['id'] = this.id;
  364. data['provinceName'] = this.provinceName;
  365. data['cityName'] = this.cityName;
  366. data['createTime'] = this.createTime;
  367. data['createBy'] = this.createBy;
  368. data['updateTime'] = this.updateTime;
  369. data['updateBy'] = this.updateBy;
  370. data['title'] = this.title;
  371. data['expression'] = this.expression;
  372. data['solution'] = this.solution;
  373. data['imgs'] = this.imgs;
  374. data['brandId'] = this.brandId;
  375. data['expert'] = this.expert;
  376. data['reward'] = this.reward;
  377. data['lockFlag'] = this.lockFlag;
  378. data['hotFlag'] = this.hotFlag;
  379. data['statuz'] = this.statuz;
  380. data['favoriteNum'] = this.favoriteNum;
  381. data['likeNum'] = this.likeNum;
  382. data['browseNum'] = this.browseNum;
  383. data['tipNum'] = this.tipNum;
  384. data['examineFlag'] = this.examineFlag;
  385. data['notExamineReason'] = this.notExamineReason;
  386. data['validPeriod'] = this.validPeriod;
  387. data['userName'] = this.userName;
  388. data['brandName'] = this.brandName;
  389. data['avatarUrl'] = this.avatarUrl;
  390. data['isLike'] = this.isLike;
  391. data['isFavorite'] = this.isFavorite;
  392. data['descr'] = this.descr;
  393. data['cover'] = this.cover;
  394. data['url'] = this.url;
  395. data['userId'] = this.userId;
  396. data['payNum'] = this.payNum;
  397. data['checkFlag'] = this.checkFlag;
  398. data['checkComment'] = this.checkComment;
  399. data['platformFlag'] = this.platformFlag;
  400. data['nickname'] = this.nickname;
  401. data['favoriteId'] = this.favoriteId;
  402. data['likeId'] = this.likeId;
  403. data['job'] = this.job;
  404. data['upperSalary'] = this.upperSalary;
  405. data['lowerSalary'] = this.lowerSalary;
  406. data['upperWorking'] = this.upperWorking;
  407. data['lowerWorking'] = this.lowerWorking;
  408. data['eduLevel'] = this.eduLevel;
  409. data['address'] = this.address;
  410. data['companyId'] = this.companyId;
  411. data['info'] = this.info;
  412. data['sort'] = this.sort;
  413. data['reason'] = this.reason;
  414. data['typeName'] = this.typeName;
  415. data['eduName'] = this.eduName;
  416. if (this.company != null) {
  417. data['company'] = this.company.toJson();
  418. }
  419. data['isApply'] = this.isApply;
  420. data['name'] = this.name;
  421. data['price'] = this.price;
  422. data['manufacturer'] = this.manufacturer;
  423. data['telephone'] = this.telephone;
  424. return data;
  425. }
  426. }
  427. class Company {
  428. int id;
  429. int createTime;
  430. String createBy;
  431. int updateTime;
  432. String updateBy;
  433. String name;
  434. String address;
  435. String corporator;
  436. String telephone;
  437. String mainbusiness;
  438. int type;
  439. String companySize;
  440. Company(
  441. {this.id,
  442. this.createTime,
  443. this.createBy,
  444. this.updateTime,
  445. this.updateBy,
  446. this.name,
  447. this.address,
  448. this.corporator,
  449. this.telephone,
  450. this.mainbusiness,
  451. this.type,
  452. this.companySize});
  453. Company.fromJson(Map<String, dynamic> json) {
  454. id = json['id'];
  455. createTime = json['createTime'];
  456. createBy = json['createBy'];
  457. updateTime = json['updateTime'];
  458. updateBy = json['updateBy'];
  459. name = json['name'];
  460. address = json['address'];
  461. corporator = json['corporator'];
  462. telephone = json['telephone'];
  463. mainbusiness = json['mainbusiness'];
  464. type = json['type'];
  465. companySize = json['companySize'];
  466. }
  467. Map<String, dynamic> toJson() {
  468. final Map<String, dynamic> data = new Map<String, dynamic>();
  469. data['id'] = this.id;
  470. data['createTime'] = this.createTime;
  471. data['createBy'] = this.createBy;
  472. data['updateTime'] = this.updateTime;
  473. data['updateBy'] = this.updateBy;
  474. data['name'] = this.name;
  475. data['address'] = this.address;
  476. data['corporator'] = this.corporator;
  477. data['telephone'] = this.telephone;
  478. data['mainbusiness'] = this.mainbusiness;
  479. data['type'] = this.type;
  480. data['companySize'] = this.companySize;
  481. return data;
  482. }
  483. }