feedback_chat.dart 753 B

12345678910111213141516171819202122232425262728
  1. class FeedbackChat {
  2. String? from;
  3. String? content;
  4. List<String>? images;
  5. String? createdAt;
  6. int? createTime;
  7. FeedbackChat(
  8. {this.from, this.content, this.images, this.createdAt, this.createTime});
  9. FeedbackChat.fromJson(Map<String, dynamic> json) {
  10. from = json['from'];
  11. content = json['content'];
  12. images = json['images'].cast<String>();
  13. createdAt = json['createdAt'];
  14. createTime = json['createTime'];
  15. }
  16. Map<String, dynamic> toJson() {
  17. final Map<String, dynamic> data = new Map<String, dynamic>();
  18. data['from'] = this.from;
  19. data['content'] = this.content;
  20. data['images'] = this.images;
  21. data['createdAt'] = this.createdAt;
  22. data['createTime'] = this.createTime;
  23. return data;
  24. }
  25. }