Interface MappedTypeConverters<T>

interface MappedTypeConverters<T> {
    deserializer?: ((json, params) => T);
    members?: Partial<Record<keyof T, SerializableMemberOptions | IndexedObject>>;
    serializer?: ((value, params) => any);
}

Type Parameters

  • T

Properties

deserializer?: ((json, params) => T)

Use this deserializer to convert a JSON value to the type.

Type declaration

members?: Partial<Record<keyof T, SerializableMemberOptions | IndexedObject>>

Custom member serialization strategies.

serializer?: ((value, params) => any)

Use this serializer to convert a type back to JSON.

Type declaration