feed_back.dart 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. class FeedBackInfo {
  2. int result;
  3. int code;
  4. String msg;
  5. List<FeedBackInfoData> data;
  6. FeedBackInfo({this.result, this.code, this.msg, this.data});
  7. FeedBackInfo.fromJson(Map<String, dynamic> json) {
  8. result = json['result'];
  9. code = json['code'];
  10. msg = json['msg'];
  11. if (json['data'] != null) {
  12. data = new List<FeedBackInfoData>();
  13. json['data'].forEach((v) {
  14. data.add(new FeedBackInfoData.fromJson(v));
  15. });
  16. }
  17. }
  18. Map<String, dynamic> toJson() {
  19. final Map<String, dynamic> data = new Map<String, dynamic>();
  20. data['result'] = this.result;
  21. data['code'] = this.code;
  22. data['msg'] = this.msg;
  23. if (this.data != null) {
  24. data['data'] = this.data.map((v) => v.toJson()).toList();
  25. }
  26. return data;
  27. }
  28. }
  29. class FeedBackInfoData {
  30. String from;
  31. String content;
  32. List<String> images;
  33. String createdAt;
  34. int createTime;
  35. FeedBackInfoData({this.from, this.content, this.images, this.createdAt, this.createTime});
  36. FeedBackInfoData.fromJson(Map<String, dynamic> json) {
  37. from = json['from'];
  38. content = json['content'];
  39. images = json['images'].cast<String>();
  40. createdAt = json['createdAt'];
  41. createTime = json['createTime'];
  42. }
  43. Map<String, dynamic> toJson() {
  44. final Map<String, dynamic> data = new Map<String, dynamic>();
  45. data['from'] = this.from;
  46. data['content'] = this.content;
  47. data['images'] = this.images;
  48. data['createdAt'] = this.createdAt;
  49. data['createTime'] = this.createTime;
  50. return data;
  51. }
  52. }
  53. class FeedTypeInfo {
  54. int result;
  55. int code;
  56. String msg;
  57. List<FeedTypeInfoData> data;
  58. FeedTypeInfo({this.result, this.code, this.msg, this.data});
  59. FeedTypeInfo.fromJson(Map<String, dynamic> json) {
  60. result = json['result'];
  61. code = json['code'];
  62. msg = json['msg'];
  63. if (json['data'] != null) {
  64. data = new List<FeedTypeInfoData>();
  65. json['data'].forEach((v) {
  66. data.add(new FeedTypeInfoData.fromJson(v));
  67. });
  68. }
  69. }
  70. Map<String, dynamic> toJson() {
  71. final Map<String, dynamic> data = new Map<String, dynamic>();
  72. data['result'] = this.result;
  73. data['code'] = this.code;
  74. data['msg'] = this.msg;
  75. if (this.data != null) {
  76. data['data'] = this.data.map((v) => v.toJson()).toList();
  77. }
  78. return data;
  79. }
  80. }
  81. class FeedTypeInfoData {
  82. String groupId;
  83. String groupName;
  84. List<Types> types;
  85. FeedTypeInfoData({this.groupId, this.groupName, this.types});
  86. FeedTypeInfoData.fromJson(Map<String, dynamic> json) {
  87. groupId = json['groupId'];
  88. groupName = json['groupName'];
  89. if (json['types'] != null) {
  90. types = new List<Types>();
  91. json['types'].forEach((v) {
  92. types.add(new Types.fromJson(v));
  93. });
  94. }
  95. }
  96. Map<String, dynamic> toJson() {
  97. final Map<String, dynamic> data = new Map<String, dynamic>();
  98. data['groupId'] = this.groupId;
  99. data['groupName'] = this.groupName;
  100. if (this.types != null) {
  101. data['types'] = this.types.map((v) => v.toJson()).toList();
  102. }
  103. return data;
  104. }
  105. }
  106. class Types {
  107. String typeId;
  108. String typeName;
  109. Types({this.typeId, this.typeName});
  110. Types.fromJson(Map<String, dynamic> json) {
  111. typeId = json['typeId'];
  112. typeName = json['typeName'];
  113. }
  114. Map<String, dynamic> toJson() {
  115. final Map<String, dynamic> data = new Map<String, dynamic>();
  116. data['typeId'] = this.typeId;
  117. data['typeName'] = this.typeName;
  118. return data;
  119. }
  120. }