Serializer.deserializeBase

Deserializes the base class(es) of an instance.

This method is used when performing custom deserialization of a given type. If this method is not called when performing custom deserialization none of the instance's base classes will be serialized.

class Serializer
void
deserializeBase
(
T
)
()

Parameters

value T

the instance which base class(es) should be deserialized, usually

this

Throws

SerializationException if an error occurs

Examples

class Base {}
class Sub : Base
{
    void fromData (Serializer serializer, Serializer.Data key)
    {
        // perform deserialization
        serializer.deserializeBase(this);
    }
}

Meta