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
.
data |
The Variant data to parse. If this is a floating reference it will be consumed |
type |
The Type of the class to instantiate from |
A newly constructed Object build from |