toMap method

Map<String, dynamic> toMap()

Serializes the attachment to a JSON-friendly map.

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
      'name': name,
      'contentType': contentType,
    };