representation_model.dart 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. class RepresentationModel {
  2. List<RepresentationDetailModel> records;
  3. int total;
  4. int size;
  5. int current;
  6. bool searchCount;
  7. int pages;
  8. RepresentationModel(
  9. {this.records,
  10. this.total,
  11. this.size,
  12. this.current,
  13. this.searchCount,
  14. this.pages});
  15. RepresentationModel.fromJson(Map<String, dynamic> json) {
  16. if (json['records'] != null) {
  17. records = new List<RepresentationDetailModel>();
  18. json['records'].forEach((v) {
  19. records.add(new RepresentationDetailModel.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 RepresentationDetailModel {
  42. int id;
  43. int createTime;
  44. String createBy;
  45. int updateTime;
  46. String updateBy;
  47. String content;
  48. String imgs;
  49. int statuz;
  50. int dataId;
  51. int appealerId;
  52. String cancelSeason;
  53. String expertName;
  54. String expression;
  55. String userName;
  56. int caseId;
  57. String sessionid;
  58. RepresentationDetailModel(
  59. {this.id,
  60. this.createTime,
  61. this.createBy,
  62. this.updateTime,
  63. this.updateBy,
  64. this.content,
  65. this.imgs,
  66. this.statuz,
  67. this.dataId,
  68. this.appealerId,
  69. this.cancelSeason,
  70. this.expertName,
  71. this.expression,
  72. this.userName,
  73. this.caseId,
  74. this.sessionid});
  75. RepresentationDetailModel.fromJson(Map<String, dynamic> json) {
  76. id = json['id'];
  77. createTime = json['createTime'];
  78. createBy = json['createBy'];
  79. updateTime = json['updateTime'];
  80. updateBy = json['updateBy'];
  81. content = json['content'];
  82. imgs = json['imgs'];
  83. statuz = json['statuz'];
  84. dataId = json['dataId'];
  85. appealerId = json['appealerId'];
  86. cancelSeason = json['cancelSeason'];
  87. expertName = json['expertName'];
  88. expression = json['expression'];
  89. userName = json['userName'];
  90. caseId = json['caseId'];
  91. sessionid = json['sessionid'];
  92. }
  93. Map<String, dynamic> toJson() {
  94. final Map<String, dynamic> data = new Map<String, dynamic>();
  95. data['id'] = this.id;
  96. data['createTime'] = this.createTime;
  97. data['createBy'] = this.createBy;
  98. data['updateTime'] = this.updateTime;
  99. data['updateBy'] = this.updateBy;
  100. data['content'] = this.content;
  101. data['imgs'] = this.imgs;
  102. data['statuz'] = this.statuz;
  103. data['dataId'] = this.dataId;
  104. data['appealerId'] = this.appealerId;
  105. data['cancelSeason'] = this.cancelSeason;
  106. data['expertName'] = this.expertName;
  107. data['expression'] = this.expression;
  108. data['userName'] = this.userName;
  109. data['caseId'] = this.caseId;
  110. data['sessionid'] = this.sessionid;
  111. return data;
  112. }
  113. }