/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { SerializableOptions } from "./serializable-options"; export declare class Serializable { constructor(object?: any); /** * json string 역직렬화시 인스턴스할 Type 정보 * * * many to one * ``` * item: Item, * items: Item[], * genericItem: SomeWrapper, * genericItems: SomeWrapper[] = [], * * getPropsSchema() { * return { * item: Item, * items: Item, // Array 인 경우도 1개의 인스턴스 사용 방식과 동일하게 선언한다. * genericItem: { * constructor: SomeWrapper, // Generic Container Type * genericType: ChildItem, // T type * }, * genericItems: { * constructor: SomeWrapper, // Generic Container Type * genericType: ChildItem, // T type * }, * mapItem: { * map: true, * keyConstructor: SomeKeyType, // optional. TODO * keyGenericType: T // optional. keyConstructor 가 반드시 필요해야한다. * valueIsArray: boolean, // optional * valueConstructor: SomeValueType // TODO * valueGenericType: T // optional. * } * } * } * ``` * */ getPropsSchema(): undefined | object; fillFromJSON(jsonString: string): this; fillFromJSONObject(jsonObj: any, option?: SerializableOptions): this; }