Converts a InputMedia to a Map for JSON encoding.
Map<String, dynamic> getValue([String? field, String? thumb]);