Convert MediaInfo to JSON format
Map<String, dynamic> toJson() { return { 'name': fileName, 'data': base64, 'data_scheme': base64WithScheme, }; }