meeting_attachment.dart 992 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /// 会议材料
  2. class MeetingAttachmentModel {
  3. String? id;
  4. String? name;
  5. String? meeting;
  6. String? extension;
  7. int? length;
  8. bool? summary; //是否是会议纪要附件.
  9. MeetingAttachmentModel({ this.id, this.name, this.meeting, this.extension, this.length, this.summary});
  10. MeetingAttachmentModel.fromJson(Map<String, dynamic> json){
  11. id = json['id'];
  12. name = json['name'];
  13. meeting = json['meeting'];
  14. extension = json['extension'];
  15. length = json['length'];
  16. summary = json['summary'];
  17. }
  18. Map<String, dynamic> toJson(){
  19. final Map<String, dynamic> data = <String, dynamic>{};
  20. data['id'] = id;
  21. data['name'] = name;
  22. data['meeting'] = meeting;
  23. data['extension'] = extension;
  24. data['length'] = length;
  25. data['summary'] = summary;
  26. return data;
  27. }
  28. @override
  29. bool operator ==(other) {
  30. return other is MeetingAttachmentModel && other.id == id;
  31. }
  32. @override
  33. int get hashCode => id.hashCode;
  34. }