public static Object parse (Variant data, Type type)

Reconstruct a Serializable from Variant data.

For this function to work you need to register a parser with register_parser. Any native Dee class will do so automatically.

This method only works on data created with serialize and not with data from externalize.

Since a SerializableParseFunc is not allowed to fail - by contract - it can be guaranteed that this function only returns null in case there is no known parser for type and Variant signature of data.



The Variant data to parse. If this is a floating reference it will be consumed


The Type of the class to instantiate from data


A newly constructed Object build from data or null in case no parser has been registered for the given Type or variant signature. Free with unref.