Static
Protected
Readonly
deserializerStatic
Protected
eventStatic
Protected
Readonly
knownStatic
Protected
Readonly
serializerStatic
cloneClone a serializable object
Cloned object
Serializable object
Optional
dataType: Constructor<D>Data type to clone to
Static
deserializeDeserialize data
Data to deserialze
Optional
dataType: Constructor<T>Optional data type to specify deserialization type
Optional
config: DataSerializerConfigData serializer configuration
Optional
dataType: Constructor<T>Optional
config: DataSerializerConfigStatic
findPrototype of target
Static
findStatic
getGet the TypedJSON metadata
use getMetadata
https://gist.github.com/krizka/c83fb1966dd57997a1fc02625719387d
Root object metadata
Prototype of target
Static
getGet the root TypedJSON metadata
use getRootMetadata
https://gist.github.com/krizka/c83fb1966dd57997a1fc02625719387d
Root object metadata
Prototype of target
Static
registerManually register a new type
Type to register
Optional
converters: MappedTypeConverters<T>Optional converters
Static
serializeSerialize data
Serialized data
Data to serialize
Optional
config: DataSerializerConfig = {}Data serializer configuration
Static
unregisterUnregister a type
Type to unregister
Allows the serialization and deserialization of objects using the SerializableObject decorator.
Usage
Registration
Objects are registered upon loading with the SerializableObject decorator. Manual registration is possible using: