search_model.dart 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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 tipNum;
  190. int examineFlag;
  191. String notExamineReason;
  192. int validPeriod;
  193. String userName;
  194. String brandName;
  195. String avatarUrl;
  196. int isLike;
  197. int isFavorite;
  198. String descr;
  199. String cover;
  200. String url;
  201. String userId;
  202. int payNum;
  203. int checkFlag;
  204. String checkComment;
  205. int platformFlag;
  206. String nickname;
  207. int favoriteId;
  208. int likeId;
  209. String job;
  210. double upperSalary;
  211. double lowerSalary;
  212. int upperWorking;
  213. int lowerWorking;
  214. int eduLevel;
  215. String address;
  216. int companyId;
  217. String info;
  218. int sort;
  219. String reason;
  220. String typeName;
  221. String eduName;
  222. Company company;
  223. int isApply;
  224. String name;
  225. double price;
  226. String manufacturer;
  227. String telephone;
  228. String provinceName;
  229. String cityName;
  230. InfoList(
  231. {this.id,
  232. this.createTime,
  233. this.provinceName,
  234. this.cityName,
  235. this.createBy,
  236. this.updateTime,
  237. this.updateBy,
  238. this.title,
  239. this.expression,
  240. this.solution,
  241. this.imgs,
  242. this.brandId,
  243. this.expert,
  244. this.reward,
  245. this.lockFlag,
  246. this.hotFlag,
  247. this.statuz,
  248. this.favoriteNum,
  249. this.likeNum,
  250. this.browseNum,
  251. this.tipNum,
  252. this.examineFlag,
  253. this.notExamineReason,
  254. this.validPeriod,
  255. this.userName,
  256. this.brandName,
  257. this.avatarUrl,
  258. this.isLike,
  259. this.isFavorite,
  260. this.descr,
  261. this.cover,
  262. this.url,
  263. this.userId,
  264. this.payNum,
  265. this.checkFlag,
  266. this.checkComment,
  267. this.platformFlag,
  268. this.nickname,
  269. this.favoriteId,
  270. this.likeId,
  271. this.job,
  272. this.upperSalary,
  273. this.lowerSalary,
  274. this.upperWorking,
  275. this.lowerWorking,
  276. this.eduLevel,
  277. this.address,
  278. this.companyId,
  279. this.info,
  280. this.sort,
  281. this.reason,
  282. this.typeName,
  283. this.eduName,
  284. this.company,
  285. this.isApply,
  286. this.name,
  287. this.price,
  288. this.manufacturer,
  289. this.telephone});
  290. InfoList.fromJson(Map<String, dynamic> json) {
  291. id = json['id'];
  292. createTime = json['createTime'];
  293. provinceName = json['provinceName'];
  294. cityName = json['cityName'];
  295. createBy = json['createBy'];
  296. updateTime = json['updateTime'];
  297. updateBy = json['updateBy'];
  298. title = json['title'];
  299. expression = json['expression'];
  300. solution = json['solution'];
  301. imgs = json['imgs'];
  302. brandId = json['brandId'];
  303. expert = json['expert'];
  304. reward = json['reward'];
  305. lockFlag = json['lockFlag'];
  306. hotFlag = json['hotFlag'];
  307. statuz = json['statuz'];
  308. favoriteNum = json['favoriteNum'];
  309. likeNum = json['likeNum'];
  310. browseNum = json['browseNum'];
  311. tipNum = json['tipNum'];
  312. examineFlag = json['examineFlag'];
  313. notExamineReason = json['notExamineReason'];
  314. validPeriod = json['validPeriod'];
  315. userName = json['userName'];
  316. brandName = json['brandName'];
  317. avatarUrl = json['avatarUrl'];
  318. isLike = json['isLike'];
  319. isFavorite = json['isFavorite'];
  320. descr = json['descr'];
  321. cover = json['cover'];
  322. url = json['url'];
  323. userId = json['userId'];
  324. payNum = json['payNum'];
  325. checkFlag = json['checkFlag'];
  326. checkComment = json['checkComment'];
  327. platformFlag = json['platformFlag'];
  328. nickname = json['nickname'];
  329. favoriteId = json['favoriteId'];
  330. likeId = json['likeId'];
  331. job = json['job'];
  332. upperSalary = json['upperSalary'];
  333. lowerSalary = json['lowerSalary'];
  334. upperWorking = json['upperWorking'];
  335. lowerWorking = json['lowerWorking'];
  336. eduLevel = json['eduLevel'];
  337. address = json['address'];
  338. companyId = json['companyId'];
  339. info = json['info'];
  340. sort = json['sort'];
  341. reason = json['reason'];
  342. typeName = json['typeName'];
  343. eduName = json['eduName'];
  344. company =
  345. json['company'] != null ? new Company.fromJson(json['company']) : null;
  346. isApply = json['isApply'];
  347. name = json['name'];
  348. price = json['price'];
  349. manufacturer = json['manufacturer'];
  350. telephone = json['telephone'];
  351. }
  352. Map<String, dynamic> toJson() {
  353. final Map<String, dynamic> data = new Map<String, dynamic>();
  354. data['id'] = this.id;
  355. data['provinceName'] = this.provinceName;
  356. data['cityName'] = this.cityName;
  357. data['createTime'] = this.createTime;
  358. data['createBy'] = this.createBy;
  359. data['updateTime'] = this.updateTime;
  360. data['updateBy'] = this.updateBy;
  361. data['title'] = this.title;
  362. data['expression'] = this.expression;
  363. data['solution'] = this.solution;
  364. data['imgs'] = this.imgs;
  365. data['brandId'] = this.brandId;
  366. data['expert'] = this.expert;
  367. data['reward'] = this.reward;
  368. data['lockFlag'] = this.lockFlag;
  369. data['hotFlag'] = this.hotFlag;
  370. data['statuz'] = this.statuz;
  371. data['favoriteNum'] = this.favoriteNum;
  372. data['likeNum'] = this.likeNum;
  373. data['browseNum'] = this.browseNum;
  374. data['tipNum'] = this.tipNum;
  375. data['examineFlag'] = this.examineFlag;
  376. data['notExamineReason'] = this.notExamineReason;
  377. data['validPeriod'] = this.validPeriod;
  378. data['userName'] = this.userName;
  379. data['brandName'] = this.brandName;
  380. data['avatarUrl'] = this.avatarUrl;
  381. data['isLike'] = this.isLike;
  382. data['isFavorite'] = this.isFavorite;
  383. data['descr'] = this.descr;
  384. data['cover'] = this.cover;
  385. data['url'] = this.url;
  386. data['userId'] = this.userId;
  387. data['payNum'] = this.payNum;
  388. data['checkFlag'] = this.checkFlag;
  389. data['checkComment'] = this.checkComment;
  390. data['platformFlag'] = this.platformFlag;
  391. data['nickname'] = this.nickname;
  392. data['favoriteId'] = this.favoriteId;
  393. data['likeId'] = this.likeId;
  394. data['job'] = this.job;
  395. data['upperSalary'] = this.upperSalary;
  396. data['lowerSalary'] = this.lowerSalary;
  397. data['upperWorking'] = this.upperWorking;
  398. data['lowerWorking'] = this.lowerWorking;
  399. data['eduLevel'] = this.eduLevel;
  400. data['address'] = this.address;
  401. data['companyId'] = this.companyId;
  402. data['info'] = this.info;
  403. data['sort'] = this.sort;
  404. data['reason'] = this.reason;
  405. data['typeName'] = this.typeName;
  406. data['eduName'] = this.eduName;
  407. if (this.company != null) {
  408. data['company'] = this.company.toJson();
  409. }
  410. data['isApply'] = this.isApply;
  411. data['name'] = this.name;
  412. data['price'] = this.price;
  413. data['manufacturer'] = this.manufacturer;
  414. data['telephone'] = this.telephone;
  415. return data;
  416. }
  417. }
  418. class Company {
  419. int id;
  420. int createTime;
  421. String createBy;
  422. int updateTime;
  423. String updateBy;
  424. String name;
  425. String address;
  426. String corporator;
  427. String telephone;
  428. String mainbusiness;
  429. int type;
  430. String companySize;
  431. Company(
  432. {this.id,
  433. this.createTime,
  434. this.createBy,
  435. this.updateTime,
  436. this.updateBy,
  437. this.name,
  438. this.address,
  439. this.corporator,
  440. this.telephone,
  441. this.mainbusiness,
  442. this.type,
  443. this.companySize});
  444. Company.fromJson(Map<String, dynamic> json) {
  445. id = json['id'];
  446. createTime = json['createTime'];
  447. createBy = json['createBy'];
  448. updateTime = json['updateTime'];
  449. updateBy = json['updateBy'];
  450. name = json['name'];
  451. address = json['address'];
  452. corporator = json['corporator'];
  453. telephone = json['telephone'];
  454. mainbusiness = json['mainbusiness'];
  455. type = json['type'];
  456. companySize = json['companySize'];
  457. }
  458. Map<String, dynamic> toJson() {
  459. final Map<String, dynamic> data = new Map<String, dynamic>();
  460. data['id'] = this.id;
  461. data['createTime'] = this.createTime;
  462. data['createBy'] = this.createBy;
  463. data['updateTime'] = this.updateTime;
  464. data['updateBy'] = this.updateBy;
  465. data['name'] = this.name;
  466. data['address'] = this.address;
  467. data['corporator'] = this.corporator;
  468. data['telephone'] = this.telephone;
  469. data['mainbusiness'] = this.mainbusiness;
  470. data['type'] = this.type;
  471. data['companySize'] = this.companySize;
  472. return data;
  473. }
  474. }