UNPKG

@sitecore/sc-contenthub-webclient-sdk

Version:

Sitecore Content Hub WebClient SDK.

22 lines (21 loc) 922 B
import { IPropertyConverter } from "ta-json"; import { JsonValue } from "../base-types"; import { FacetResponseResource } from "../models/search/facet-response-resource"; export declare class AllFacetValuesChildrenConverter implements IPropertyConverter { /** * Serializes a mapping of strings to array of FacetResponseResource into a JSON object. * * @param value - A mapping of strings to array of FacetResponseResource * * @returns The serialized value. */ serialize(children: Record<string, Array<FacetResponseResource>>): JsonValue; /** * Deserializes a JSON object into a mapping of strings to array of FacetResponseResource. * * @param value - The serialized value * * @returns A mapping of strings to array of FacetResponseResource. */ deserialize(value: Record<string, Array<JsonValue>>): Record<string, Array<FacetResponseResource>>; }