Class Deserializer

Hierarchy-Diagram

UML class diagram of Deserializer
Legend
icon for a class in the UML class diagram class

Hierarchy

  • unknown
    • Deserializer

Constructors

Properties

createKnownTypesMap: ((knowTypes) => Map<string, Serializable<any>>)

Type declaration

deserializationStrategy: Map<Serializable<any>, DeserializerFn<any, TypeDescriptor, any>>
errorHandler: ((error) => void) = ...

Type declaration

    • (error): void
    • Parameters

      • error: Error

      Returns void

getErrorHandler: (() => ((error) => void))

Type declaration

    • (): ((error) => void)
    • Returns ((error) => void)

        • (error): void
        • Parameters

          • error: Error

          Returns void

getTypeResolver: (() => TypeResolver)

Type declaration

    • (): TypeResolver
    • Returns TypeResolver

instantiateType: ((ctor) => any)

Type declaration

    • (ctor): any
    • Parameters

      • ctor: any

      Returns any

mergeKnownTypes: ((...knownTypeMaps) => Map<string, Serializable<any>>)

Type declaration

nameResolver?: ((ctor) => string)

Type declaration

    • (ctor): string
    • Parameters

      Returns string

options?: OptionsBase
retrievePreserveNull: ((memberOptions?) => boolean)

Type declaration

setDeserializationStrategy: ((type, deserializer) => void)

Type declaration

setErrorHandler: ((errorHandlerCallback) => void)

Type declaration

    • (errorHandlerCallback): void
    • Parameters

      • errorHandlerCallback: ((error) => void)
          • (error): void
          • Parameters

            • error: Error

            Returns void

      Returns void

setNameResolver: ((nameResolverCallback) => void)

Type declaration

    • (nameResolverCallback): void
    • Parameters

      • nameResolverCallback: ((ctor) => string)
          • (ctor): string
          • Parameters

            Returns string

      Returns void

setTypeResolver: ((typeResolverCallback) => void)

Type declaration

    • (typeResolverCallback): void
    • Parameters

      • typeResolverCallback: TypeResolver

      Returns void

Methods

  • Parameters

    Returns any[]

  • Parameters

    Returns Map<any, any>

  • Parameters

    Returns Set<any>

  • Parameters

    • sourceObject: any
    • typeDescriptor: TypeDescriptor
    • knownTypes: Map<string, Serializable<any>>
    • Optional memberName: string
    • Optional memberOptions: ObjectMemberMetadata
    • Optional serializerOptions: any

    Returns any

  • Parameters

    • source: any
    • expectedShape: any

    Returns boolean