baybe.serialization.core.select_constructor_hook

baybe.serialization.core.select_constructor_hook(specs: dict, cls: type[_T])[source]

Use the constructor specified in the ‘constructor’ field for deserialization.

Return type:

TypeVar(_T)