position_model.dart 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. class PositionModel {
  2. List<PositionDetailModel> records;
  3. int total;
  4. int size;
  5. int current;
  6. bool searchCount;
  7. int pages;
  8. PositionModel(
  9. {this.records,
  10. this.total,
  11. this.size,
  12. this.current,
  13. this.searchCount,
  14. this.pages});
  15. PositionModel.fromJson(Map<String, dynamic> json) {
  16. if (json['records'] != null) {
  17. records = new List<PositionDetailModel>();
  18. json['records'].forEach((v) {
  19. records.add(new PositionDetailModel.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 PositionDetailModel {
  42. int id;
  43. int createTime;
  44. String createBy;
  45. int updateTime;
  46. String updateBy;
  47. String job;
  48. double upperSalary;
  49. double lowerSalary;
  50. int upperWorking;
  51. int lowerWorking;
  52. int eduLevel;
  53. String address;
  54. int companyId;
  55. String info;
  56. int favoriteNum;
  57. int isFavorite;
  58. int favoriteId;
  59. int likeNum;
  60. int browseNum;
  61. int isApply;
  62. int hotFlag;
  63. int checkFlag;
  64. int sort;
  65. int statuz;
  66. String reason;
  67. Company company;
  68. String typeName;
  69. String eduName;
  70. String provinceName;
  71. String cityName;
  72. PositionDetailModel(
  73. {this.id,
  74. this.createTime,
  75. this.provinceName,
  76. this.cityName,
  77. this.createBy,
  78. this.updateTime,
  79. this.updateBy,
  80. this.job,
  81. this.upperSalary,
  82. this.lowerSalary,
  83. this.upperWorking,
  84. this.lowerWorking,
  85. this.eduLevel,
  86. this.address,
  87. this.companyId,
  88. this.info,
  89. this.favoriteNum,
  90. this.isFavorite,
  91. this.favoriteId,
  92. this.likeNum,
  93. this.browseNum,
  94. this.isApply,
  95. this.hotFlag,
  96. this.checkFlag,
  97. this.sort,
  98. this.statuz,
  99. this.reason,
  100. this.typeName,
  101. this.eduName,
  102. this.company});
  103. PositionDetailModel.fromJson(Map<String, dynamic> json) {
  104. id = json['id'];
  105. createTime = json['createTime'];
  106. provinceName = json['provinceName'];
  107. cityName = json['cityName'];
  108. createBy = json['createBy'];
  109. updateTime = json['updateTime'];
  110. updateBy = json['updateBy'];
  111. job = json['job'];
  112. upperSalary = json['upperSalary'];
  113. lowerSalary = json['lowerSalary'];
  114. upperWorking = json['upperWorking'];
  115. lowerWorking = json['lowerWorking'];
  116. eduLevel = json['eduLevel'];
  117. address = json['address'];
  118. companyId = json['companyId'];
  119. info = json['info'];
  120. favoriteNum = json['favoriteNum'];
  121. isFavorite = json['isFavorite'];
  122. favoriteId = json['favoriteId'];
  123. likeNum = json['likeNum'];
  124. browseNum = json['browseNum'];
  125. isApply = json['isApply'];
  126. hotFlag = json['hotFlag'];
  127. checkFlag = json['checkFlag'];
  128. sort = json['sort'];
  129. statuz = json['statuz'];
  130. reason = json['reason'];
  131. typeName = json['typeName'];
  132. eduName = json['eduName'];
  133. company =
  134. json['company'] != null ? new Company.fromJson(json['company']) : null;
  135. }
  136. Map<String, dynamic> toJson() {
  137. final Map<String, dynamic> data = new Map<String, dynamic>();
  138. data['id'] = this.id;
  139. data['createTime'] = this.createTime;
  140. data['provinceName'] = this.provinceName;
  141. data['cityName'] = this.cityName;
  142. data['createBy'] = this.createBy;
  143. data['updateTime'] = this.updateTime;
  144. data['updateBy'] = this.updateBy;
  145. data['job'] = this.job;
  146. data['upperSalary'] = this.upperSalary;
  147. data['lowerSalary'] = this.lowerSalary;
  148. data['upperWorking'] = this.upperWorking;
  149. data['lowerWorking'] = this.lowerWorking;
  150. data['eduLevel'] = this.eduLevel;
  151. data['address'] = this.address;
  152. data['companyId'] = this.companyId;
  153. data['info'] = this.info;
  154. data['favoriteNum'] = this.favoriteNum;
  155. data['isFavorite'] = this.isFavorite;
  156. data['favoriteId'] = this.favoriteId;
  157. data['likeNum'] = this.likeNum;
  158. data['browseNum'] = this.browseNum;
  159. data['isApply'] = this.isApply;
  160. data['hotFlag'] = this.hotFlag;
  161. data['checkFlag'] = this.checkFlag;
  162. data['sort'] = this.sort;
  163. data['statuz'] = this.statuz;
  164. data['reason'] = this.reason;
  165. data['typeName'] = this.typeName;
  166. data['eduName'] = this.eduName;
  167. if (this.company != null) {
  168. data['company'] = this.company.toJson();
  169. }
  170. return data;
  171. }
  172. }
  173. class Company {
  174. int id;
  175. int createTime;
  176. String createBy;
  177. int updateTime;
  178. String updateBy;
  179. String name;
  180. String address;
  181. double registeredCapital;
  182. String corporator;
  183. String telephone;
  184. String mainbusiness;
  185. String businessLicenseCode;
  186. String businessLicenseAnnex;
  187. String remarks;
  188. int isCertificated;
  189. int status;
  190. int limitedNum;
  191. int serviceTotal;
  192. int satisfactionTotal;
  193. int serviceCount;
  194. int level;
  195. String logoImg;
  196. int maintenanceTotal;
  197. int emergencyTotal;
  198. int liftTotal;
  199. int isClock;
  200. int topTime;
  201. int downTime;
  202. int isUpdown;
  203. int vipFlag;
  204. int topTimePm;
  205. int downTimePm;
  206. String topTimeOt;
  207. String downTimeOt;
  208. String provinceCode;
  209. int type;
  210. String companySize;
  211. Company(
  212. {this.id,
  213. this.createTime,
  214. this.createBy,
  215. this.updateTime,
  216. this.updateBy,
  217. this.name,
  218. this.address,
  219. this.registeredCapital,
  220. this.corporator,
  221. this.telephone,
  222. this.mainbusiness,
  223. this.businessLicenseCode,
  224. this.businessLicenseAnnex,
  225. this.remarks,
  226. this.isCertificated,
  227. this.status,
  228. this.limitedNum,
  229. this.serviceTotal,
  230. this.satisfactionTotal,
  231. this.serviceCount,
  232. this.level,
  233. this.logoImg,
  234. this.maintenanceTotal,
  235. this.emergencyTotal,
  236. this.liftTotal,
  237. this.isClock,
  238. this.topTime,
  239. this.downTime,
  240. this.isUpdown,
  241. this.vipFlag,
  242. this.topTimePm,
  243. this.downTimePm,
  244. this.topTimeOt,
  245. this.downTimeOt,
  246. this.provinceCode,
  247. this.type,
  248. this.companySize});
  249. Company.fromJson(Map<String, dynamic> json) {
  250. id = json['id'];
  251. createTime = json['createTime'];
  252. createBy = json['createBy'];
  253. updateTime = json['updateTime'];
  254. updateBy = json['updateBy'];
  255. name = json['name'];
  256. address = json['address'];
  257. registeredCapital = json['registeredCapital'];
  258. corporator = json['corporator'];
  259. telephone = json['telephone'];
  260. mainbusiness = json['mainbusiness'];
  261. businessLicenseCode = json['businessLicenseCode'];
  262. businessLicenseAnnex = json['businessLicenseAnnex'];
  263. remarks = json['remarks'];
  264. isCertificated = json['isCertificated'];
  265. status = json['status'];
  266. limitedNum = json['limitedNum'];
  267. serviceTotal = json['serviceTotal'];
  268. satisfactionTotal = json['satisfactionTotal'];
  269. serviceCount = json['serviceCount'];
  270. level = json['level'];
  271. logoImg = json['logoImg'];
  272. maintenanceTotal = json['maintenanceTotal'];
  273. emergencyTotal = json['emergencyTotal'];
  274. liftTotal = json['liftTotal'];
  275. isClock = json['isClock'];
  276. topTime = json['topTime'];
  277. downTime = json['downTime'];
  278. isUpdown = json['isUpdown'];
  279. vipFlag = json['vipFlag'];
  280. topTimePm = json['topTimePm'];
  281. downTimePm = json['downTimePm'];
  282. topTimeOt = json['topTimeOt'];
  283. downTimeOt = json['downTimeOt'];
  284. provinceCode = json['provinceCode'];
  285. type = json['type'];
  286. companySize = json['companySize'];
  287. }
  288. Map<String, dynamic> toJson() {
  289. final Map<String, dynamic> data = new Map<String, dynamic>();
  290. data['id'] = this.id;
  291. data['createTime'] = this.createTime;
  292. data['createBy'] = this.createBy;
  293. data['updateTime'] = this.updateTime;
  294. data['updateBy'] = this.updateBy;
  295. data['name'] = this.name;
  296. data['address'] = this.address;
  297. data['registeredCapital'] = this.registeredCapital;
  298. data['corporator'] = this.corporator;
  299. data['telephone'] = this.telephone;
  300. data['mainbusiness'] = this.mainbusiness;
  301. data['businessLicenseCode'] = this.businessLicenseCode;
  302. data['businessLicenseAnnex'] = this.businessLicenseAnnex;
  303. data['remarks'] = this.remarks;
  304. data['isCertificated'] = this.isCertificated;
  305. data['status'] = this.status;
  306. data['limitedNum'] = this.limitedNum;
  307. data['serviceTotal'] = this.serviceTotal;
  308. data['satisfactionTotal'] = this.satisfactionTotal;
  309. data['serviceCount'] = this.serviceCount;
  310. data['level'] = this.level;
  311. data['logoImg'] = this.logoImg;
  312. data['maintenanceTotal'] = this.maintenanceTotal;
  313. data['emergencyTotal'] = this.emergencyTotal;
  314. data['liftTotal'] = this.liftTotal;
  315. data['isClock'] = this.isClock;
  316. data['topTime'] = this.topTime;
  317. data['downTime'] = this.downTime;
  318. data['isUpdown'] = this.isUpdown;
  319. data['vipFlag'] = this.vipFlag;
  320. data['topTimePm'] = this.topTimePm;
  321. data['downTimePm'] = this.downTimePm;
  322. data['topTimeOt'] = this.topTimeOt;
  323. data['downTimeOt'] = this.downTimeOt;
  324. data['provinceCode'] = this.provinceCode;
  325. data['type'] = this.type;
  326. data['companySize'] = this.companySize;
  327. return data;
  328. }
  329. }