xieyi_model.dart 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. class XieyiModel {
  2. int id;
  3. int createTime;
  4. String createBy;
  5. int updateTime;
  6. String updateBy;
  7. String name;
  8. String createUserId;
  9. String url;
  10. String template;
  11. int statuz;
  12. int type;
  13. String nickname;
  14. String headUrl;
  15. XieyiModel(
  16. {this.id,
  17. this.createTime,
  18. this.createBy,
  19. this.updateTime,
  20. this.updateBy,
  21. this.name,
  22. this.createUserId,
  23. this.url,
  24. this.template,
  25. this.statuz,
  26. this.type,
  27. this.nickname,
  28. this.headUrl});
  29. XieyiModel.fromJson(Map<String, dynamic> json) {
  30. id = json['id'];
  31. createTime = json['createTime'];
  32. createBy = json['createBy'];
  33. updateTime = json['updateTime'];
  34. updateBy = json['updateBy'];
  35. name = json['name'];
  36. createUserId = json['createUserId'];
  37. url = json['url'];
  38. template = json['template'];
  39. statuz = json['statuz'];
  40. type = json['type'];
  41. nickname = json['nickname'];
  42. headUrl = json['headUrl'];
  43. }
  44. Map<String, dynamic> toJson() {
  45. final Map<String, dynamic> data = new Map<String, dynamic>();
  46. data['id'] = this.id;
  47. data['createTime'] = this.createTime;
  48. data['createBy'] = this.createBy;
  49. data['updateTime'] = this.updateTime;
  50. data['updateBy'] = this.updateBy;
  51. data['name'] = this.name;
  52. data['createUserId'] = this.createUserId;
  53. data['url'] = this.url;
  54. data['template'] = this.template;
  55. data['statuz'] = this.statuz;
  56. data['type'] = this.type;
  57. data['nickname'] = this.nickname;
  58. data['headUrl'] = this.headUrl;
  59. return data;
  60. }
  61. }