Attachment.fromMap constructor

Attachment.fromMap(
  1. dynamic 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'],
  );
}