expert_comment_model.dart 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. class ExpertCommentModel {
  2. List<Records> records;
  3. int total;
  4. int size;
  5. int current;
  6. bool searchCount;
  7. int pages;
  8. ExpertCommentModel(
  9. {this.records,
  10. this.total,
  11. this.size,
  12. this.current,
  13. this.searchCount,
  14. this.pages});
  15. ExpertCommentModel.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. int id;
  43. int createTime;
  44. String createBy;
  45. int updateTime;
  46. String updateBy;
  47. int tech;
  48. int responseSpeed;
  49. int attitude;
  50. String comment;
  51. int expertId;
  52. int statuz;
  53. int userId;
  54. int lifeCaseId;
  55. String expertName;
  56. String userName;
  57. String userUrl;
  58. String mobile;
  59. String expression;
  60. Records(
  61. {this.id,
  62. this.createTime,
  63. this.createBy,
  64. this.updateTime,
  65. this.updateBy,
  66. this.tech,
  67. this.responseSpeed,
  68. this.attitude,
  69. this.comment,
  70. this.expertId,
  71. this.statuz,
  72. this.userId,
  73. this.lifeCaseId,
  74. this.expertName,
  75. this.userName,
  76. this.userUrl,
  77. this.mobile,
  78. this.expression});
  79. Records.fromJson(Map<String, dynamic> json) {
  80. id = json['id'];
  81. createTime = json['createTime'];
  82. createBy = json['createBy'];
  83. updateTime = json['updateTime'];
  84. updateBy = json['updateBy'];
  85. tech = json['tech'];
  86. responseSpeed = json['responseSpeed'];
  87. attitude = json['attitude'];
  88. comment = json['comment'];
  89. expertId = json['expertId'];
  90. statuz = json['statuz'];
  91. userId = json['userId'];
  92. lifeCaseId = json['lifeCaseId'];
  93. expertName = json['expertName'];
  94. userName = json['userName'];
  95. userUrl = json['userUrl'];
  96. mobile = json['mobile'];
  97. expression = json['expression'];
  98. }
  99. Map<String, dynamic> toJson() {
  100. final Map<String, dynamic> data = new Map<String, dynamic>();
  101. data['id'] = this.id;
  102. data['createTime'] = this.createTime;
  103. data['createBy'] = this.createBy;
  104. data['updateTime'] = this.updateTime;
  105. data['updateBy'] = this.updateBy;
  106. data['tech'] = this.tech;
  107. data['responseSpeed'] = this.responseSpeed;
  108. data['attitude'] = this.attitude;
  109. data['comment'] = this.comment;
  110. data['expertId'] = this.expertId;
  111. data['statuz'] = this.statuz;
  112. data['userId'] = this.userId;
  113. data['lifeCaseId'] = this.lifeCaseId;
  114. data['expertName'] = this.expertName;
  115. data['userName'] = this.userName;
  116. data['userUrl'] = this.userUrl;
  117. data['mobile'] = this.mobile;
  118. data['expression'] = this.expression;
  119. return data;
  120. }
  121. }