core.Map<core.String, core.dynamic> toJson() => { if (facetValues != null) 'facetValues': facetValues!, if (rerankFacet != null) 'rerankFacet': rerankFacet!, };