Interface MappedTypeConverters<T>

interface MappedTypeConverters<T> {
    deserializer?: ((json, params) => T);
    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

    • (json, params): T
    • Parameters

      • json: any
      • params: CustomDeserializerParams

      Returns T

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

Use this serializer to convert a type back to JSON.

Type declaration

    • (value, params): any
    • Parameters

      • value: T
      • params: CustomSerializerParams

      Returns any