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