TypeRegistry.deserialize#

TypeRegistry.deserialize(data, context=None)[source]#

Deserialize a dict back to an object.

Three-tier dispatch: 1. If __deferred__ is True, return an unresolved DeferredFactory. 2. If a custom deserializer was registered, call it with (data, context). 3. Otherwise, look up the class by __type__ and call cls.from_dict(data).