expert_model.dart 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. class ExpertModel {
  2. List<Records> records;
  3. int total;
  4. int size;
  5. int current;
  6. bool searchCount;
  7. int pages;
  8. ExpertModel(
  9. {this.records,
  10. this.total,
  11. this.size,
  12. this.current,
  13. this.searchCount,
  14. this.pages});
  15. ExpertModel.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 ExpertListGrouped {
  42. Map<String, List<Records>> listGroup;
  43. ExpertListGrouped.fromJson(Map<String, dynamic> json) {
  44. listGroup = {};
  45. List<dynamic> list;
  46. for (var key in json.keys) {
  47. list = json[key];
  48. if (list != null && list.isNotEmpty) {
  49. listGroup[key] =
  50. json[key].map<Records>((e) => Records.fromJson(e)).toList();
  51. }
  52. }
  53. }
  54. }
  55. class Records {
  56. String userId;
  57. String acount;
  58. String password;
  59. String name;
  60. String realName;
  61. double serviceFee;
  62. int levelTotalScore;
  63. int averageScore;
  64. int expertLevel;
  65. int vipFlag;
  66. int userLevel;
  67. int platformInvitedFlag;
  68. String proficiencyBrand;
  69. String proficiency;
  70. int nearbyFlag;
  71. String mobile;
  72. int gender;
  73. int age;
  74. String avatarUrl;
  75. String remarks;
  76. String signature;
  77. int serviceTotal;
  78. int satisfactionTotal;
  79. int level;
  80. int maintenanceTotal;
  81. int emergencyTotal;
  82. int liftTotal;
  83. double balance;
  84. String type;
  85. int deleteFlag;
  86. String alipayAccount;
  87. String alipayId;
  88. double freezeBalance;
  89. int statuz;
  90. double lon;
  91. double lat;
  92. int applyFlag;
  93. double score;
  94. int maintenanceCompanyId;
  95. int createTime;
  96. String createBy;
  97. int updateTime;
  98. int requestCode;
  99. int serviceCounts;
  100. int adoptCounts;
  101. String qrCodeUrl;
  102. String updateBy;
  103. String proficiencyBrandName;
  104. String address;
  105. String introduction;
  106. String experience;
  107. int workDate;
  108. int vipEndTime;
  109. String vipId;
  110. Records(
  111. {this.userId,
  112. this.acount,
  113. this.address,
  114. this.introduction,
  115. this.experience,
  116. this.workDate,
  117. this.password,
  118. this.name,
  119. this.realName,
  120. this.serviceFee,
  121. this.levelTotalScore,
  122. this.averageScore,
  123. this.expertLevel,
  124. this.vipFlag,
  125. this.userLevel,
  126. this.platformInvitedFlag,
  127. this.proficiencyBrand,
  128. this.proficiency,
  129. this.nearbyFlag,
  130. this.serviceCounts,
  131. this.adoptCounts,
  132. this.mobile,
  133. this.gender,
  134. this.age,
  135. this.avatarUrl,
  136. this.remarks,
  137. this.signature,
  138. this.serviceTotal,
  139. this.satisfactionTotal,
  140. this.level,
  141. this.maintenanceTotal,
  142. this.emergencyTotal,
  143. this.liftTotal,
  144. this.balance,
  145. this.type,
  146. this.deleteFlag,
  147. this.alipayAccount,
  148. this.alipayId,
  149. this.freezeBalance,
  150. this.statuz,
  151. this.lon,
  152. this.lat,
  153. this.applyFlag,
  154. this.score,
  155. this.maintenanceCompanyId,
  156. this.createTime,
  157. this.createBy,
  158. this.updateTime,
  159. this.requestCode,
  160. this.qrCodeUrl,
  161. this.updateBy,
  162. this.proficiencyBrandName,
  163. this.vipEndTime,
  164. this.vipId});
  165. Records.fromJson(Map<String, dynamic> json) {
  166. userId = json['userId'];
  167. acount = json['acount'];
  168. address = json['address'];
  169. introduction = json['introduction'];
  170. experience = json['experience'];
  171. workDate = json['workDate'];
  172. serviceCounts = json['serviceCounts'];
  173. adoptCounts = json['adoptCounts'];
  174. password = json['password'];
  175. name = json['name'];
  176. realName = json['realName'];
  177. serviceFee = json['serviceFee'];
  178. levelTotalScore = json['levelTotalScore'];
  179. averageScore = json['averageScore'];
  180. expertLevel = json['expertLevel'];
  181. vipFlag = json['vipFlag'];
  182. userLevel = json['userLevel'];
  183. platformInvitedFlag = json['platformInvitedFlag'];
  184. proficiencyBrand = json['proficiencyBrand'];
  185. proficiency = json['proficiency'];
  186. nearbyFlag = json['nearbyFlag'];
  187. mobile = json['mobile'];
  188. gender = json['gender'];
  189. age = json['age'];
  190. avatarUrl = json['avatarUrl'];
  191. remarks = json['remarks'];
  192. signature = json['signature'];
  193. serviceTotal = json['serviceTotal'];
  194. satisfactionTotal = json['satisfactionTotal'];
  195. level = json['level'];
  196. maintenanceTotal = json['maintenanceTotal'];
  197. emergencyTotal = json['emergencyTotal'];
  198. liftTotal = json['liftTotal'];
  199. balance = json['balance'];
  200. type = json['type'];
  201. deleteFlag = json['deleteFlag'];
  202. alipayAccount = json['alipayAccount'];
  203. alipayId = json['alipayId'];
  204. freezeBalance = json['freezeBalance'];
  205. statuz = json['statuz'];
  206. lon = json['lon'];
  207. lat = json['lat'];
  208. applyFlag = json['applyFlag'];
  209. score = json['score'];
  210. maintenanceCompanyId = json['maintenanceCompanyId'];
  211. createTime = json['createTime'];
  212. createBy = json['createBy'];
  213. updateTime = json['updateTime'];
  214. updateBy = json['updateBy'];
  215. proficiencyBrandName = json['proficiencyBrandName'];
  216. qrCodeUrl = json['qrCodeUrl'];
  217. requestCode = json['requestCode'];
  218. vipEndTime = json['vipEndTime'];
  219. vipId = json['vipId'];
  220. }
  221. Map<String, dynamic> toJson() {
  222. final Map<String, dynamic> data = new Map<String, dynamic>();
  223. data['serviceCounts'] = this.serviceCounts;
  224. data['requestCode'] = this.requestCode;
  225. data['adoptCounts'] = this.adoptCounts;
  226. data['qrCodeUrl'] = this.qrCodeUrl;
  227. data['userId'] = this.userId;
  228. data['acount'] = this.acount;
  229. data['address'] = this.address;
  230. data['introduction'] = this.introduction;
  231. data['experience'] = this.experience;
  232. data['workDate'] = this.workDate;
  233. data['password'] = this.password;
  234. data['name'] = this.name;
  235. data['realName'] = this.realName;
  236. data['serviceFee'] = this.serviceFee;
  237. data['levelTotalScore'] = this.levelTotalScore;
  238. data['averageScore'] = this.averageScore;
  239. data['expertLevel'] = this.expertLevel;
  240. data['vipFlag'] = this.vipFlag;
  241. data['userLevel'] = this.userLevel;
  242. data['platformInvitedFlag'] = this.platformInvitedFlag;
  243. data['proficiencyBrand'] = this.proficiencyBrand;
  244. data['proficiency'] = this.proficiency;
  245. data['nearbyFlag'] = this.nearbyFlag;
  246. data['mobile'] = this.mobile;
  247. data['gender'] = this.gender;
  248. data['age'] = this.age;
  249. data['avatarUrl'] = this.avatarUrl;
  250. data['remarks'] = this.remarks;
  251. data['signature'] = this.signature;
  252. data['serviceTotal'] = this.serviceTotal;
  253. data['satisfactionTotal'] = this.satisfactionTotal;
  254. data['level'] = this.level;
  255. data['maintenanceTotal'] = this.maintenanceTotal;
  256. data['emergencyTotal'] = this.emergencyTotal;
  257. data['liftTotal'] = this.liftTotal;
  258. data['balance'] = this.balance;
  259. data['type'] = this.type;
  260. data['deleteFlag'] = this.deleteFlag;
  261. data['alipayAccount'] = this.alipayAccount;
  262. data['alipayId'] = this.alipayId;
  263. data['freezeBalance'] = this.freezeBalance;
  264. data['statuz'] = this.statuz;
  265. data['lon'] = this.lon;
  266. data['lat'] = this.lat;
  267. data['applyFlag'] = this.applyFlag;
  268. data['score'] = this.score;
  269. data['maintenanceCompanyId'] = this.maintenanceCompanyId;
  270. data['createTime'] = this.createTime;
  271. data['createBy'] = this.createBy;
  272. data['updateTime'] = this.updateTime;
  273. data['updateBy'] = this.updateBy;
  274. data['proficiencyBrandName'] = this.proficiencyBrandName;
  275. data['vipEndTime'] = this.vipEndTime;
  276. data['vipId'] = this.vipId;
  277. return data;
  278. }
  279. }