expert_model.dart 7.3 KB

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