Attachment.fromMap constructor
Attachment.fromMap(
- dynamic map
Creates a new Attachment instance from a map.
Implementation
factory Attachment.fromMap(dynamic map) {
if (map == null) {
throw ArgumentError('The type of attachment map is null');
}
return Attachment(
map['fileUrl'],
map['fileName'],
map['fileExtension'],
map['fileMimeType'],
map['fileSize'],
);
}