Interface Serializer

Serializer interface for primitive, array and struct/custom object types

interface Serializer {
    deserialize: ((data, obj, meta?) => any);
    isType: ((obj) => boolean);
    priority?: number;
    serialize: ((obj, meta?) => any);
}

Properties

deserialize: ((data, obj, meta?) => any)

Type declaration

    • (data, obj, meta?): any
    • Parameters

      • data: any
      • obj: any
      • Optional meta: any

      Returns any

isType: ((obj) => boolean)

Type declaration

    • (obj): boolean
    • Parameters

      • obj: any

      Returns boolean

priority?: number
serialize: ((obj, meta?) => any)

Type declaration

    • (obj, meta?): any
    • Parameters

      • obj: any
      • Optional meta: any

      Returns any