Attachment.fromJson constructor
Implementation
factory Attachment.fromJson(Map<String, dynamic> json) {
return Attachment(
id: json['id'] ?? '',
contentType: json['contentType'] ?? '',
fileName: json['fileName'] ?? '',
content: json['content'] ?? '',
contentId: json['contentId'] ?? '',
length: json['length'] ?? 0,
url: json['url'] ?? '',
);
}