Protected Static ReadonlydeserializerProtected StaticeventProtected Static ReadonlyknownProtected Static ReadonlyserializerStaticcloneClone a serializable object
Serializable object
OptionaldataType: Constructor<D>
Data type to clone to
Cloned object
StaticdeserializeDeserialize data
Data to deserialze
OptionaldataType: Constructor<T>
Optional data type to specify deserialization type
Optionalconfig: DataSerializerConfig
Data serializer configuration
Deserialize data
Data to deserialze
OptionaldataType: Constructor<T>
Optional data type to specify deserialization type
Optionalconfig: DataSerializerConfig
Data serializer configuration
StaticfindFind the root TypedJSON metadata
Prototype of target
Root object metadata
StaticfindStaticgetGet the TypedJSON metadata
Prototype of target
Root object metadata
StaticgetGet the root TypedJSON metadata
Prototype of target
Root object metadata
StaticregisterManually register a new type
Type to register
Optionalconverters: MappedTypeConverters<T>
Optional converters
StaticserializeSerialize data
Data to serialize
Optionalconfig: DataSerializerConfig = {}
Data serializer configuration
Serialized data
Staticunregister
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: