Attachment.fromMap constructor

Attachment.fromMap(
  1. Map<String, dynamic> map
)

Rehydrates an attachment from a serialized map.

Implementation

factory Attachment.fromMap(Map<String, dynamic> map) => Attachment(
      name: map['name'] as String,
      contentType: map['contentType'] as String,
    );