@sitecore/sc-contenthub-webclient-sdk
Version:
Sitecore Content Hub WebClient SDK.
20 lines (19 loc) • 791 B
TypeScript
import { IPropertyConverter, JsonValueObject } from "ta-json";
import { MapStringTo } from "../base-types";
import { MenuItem } from "../models/pages/menu-item";
export declare class PageResourceMenusConverter implements IPropertyConverter {
/**
* Serializes a string map of arrays of {@link MenuItem}s.
*
* @param value - The map of strings to arrays of {@link MenuItem}s
* @returns A JSON value object.
*/
serialize(value: MapStringTo<Array<MenuItem>>): JsonValueObject;
/**
* Deserializes a JSON object into a string map of arrays of {@link MenuItem}s.
*
* @param value - A JSON object
* @returns A mapping of strings to arrays of {@link MenuItem}s.
*/
deserialize(value: JsonValueObject): MapStringTo<Array<MenuItem>>;
}