toMapAsync method

Future<Map> toMapAsync()

Implementation

Future<Map> toMapAsync() async {
  return {
    'name': name,
    'mimeType': await getMimeType(),
    'bytes': await getBytesAsync(),
  };
}