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