Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'getFileExtension', if (extra != null) '@extra': extra, 'mime_type': mime_type }; }