Static
SerializableStatic
SerializersSerializers for primitive, array and struct/custom object types
Static
TypeStatic
DeserializeDeserialize an object
data to deserialize
current object that's set. If of the same class/type the data is deserialized into that instead of creating new objects.
Optional
meta: Record<string, any>Optional object to retrieve common meta-data/resources across the deserialization process of multiple objects. Objects in meta must be class instances, not js objects. (like Material, Texture, Object3D etc)
true if called from inside the deserialization function, like custom IJSONSerializable.fromJSON
Static
GetStatic
RegisterRest
...serializers: Serializer[]Static
SerializeSerialize an object
object to serialize
Optional
meta: Record<string, Record<string, any>>Optional object to store common meta-data/resources across the serialization process of multiple objects
true if called from inside the serialization function, like custom IJSONSerializable.toJSON.
Static
UnregisterRest
...serializers: Serializer[]
Serialization class with static methods for serializing and deserializing objects. Properties and classes can be marked serializable by adding serialize and serializable decorators.