@override Object toJson() => { 'topK': ?topK, if (metadataFilter.isNotDefault) 'metadataFilter': metadataFilter, };