Interface DeserializerOptions

Index

Properties

Properties

public getConstructor: (typeId: string) => () => any

Gets the constructor based on the type id.

param

The type id.

returns

The constructor.

public getTypeId: (object: any) => string

Gets the type id for an object instance, using the configured typeAttribute.

param

The object to serialize.

returns

The type.

public reviver: (key: string, value: any) => any

The default reviver function used during deserialization. By default is detects type properties on objects and uses them to re-construct the correct object using the provided constructor mapping.

param

The attribute key.

param

The object value associated with the key.

returns

The value.