Interface ObjectMetadata

Hierarchy-Diagram

UML class diagram of ObjectMetadata
Legend
icon for an interface in the UML class diagram interface

Hierarchy

  • JsonObjectMetadata
    • ObjectMetadata

Properties

beforeSerializationMethodName?: string
classType: Function

Gets or sets the constructor function for the jsonObject.

dataMembers: Map<string, ObjectMemberMetadata>
initializerCallback?: ((sourceObject: Object, rawSourceObject: Object) => Object)

Type declaration

    • (sourceObject: Object, rawSourceObject: Object): Object
    • Parameters

      • sourceObject: Object
      • rawSourceObject: Object

      Returns Object

isExplicitlyMarked: boolean

Indicates whether this class was explicitly annotated with

Json Object

or implicitly by

Json Member

isHandledWithoutAnnotation: boolean

Indicates whether this type is handled without annotation. This is usually used for the builtin types (except for Maps, Sets, and normal Arrays).

knownTypes: Set<Serializable<any>>

Set of known types used for polymorphic deserialization

knownTypesDeferred: (() => TypeDescriptor)[]

Known types to be evaluated when (de)serialization occurs

name?: string

Name used to encode polymorphic type

onDeserializedMethodName?: string
typeHintEmitter?: TypeHintEmitter

If present override the global function

typeResolver?: TypeResolver

If present override the global function

Methods

  • Returns void