utils
Module for serialization and deserialization of models, algorithms and protocols.
Module
Functions
bf_dump
def bf_dump(bf_obj: _BaseSerializableObjectMixIn) ‑> dict:
Method for serializing an object.
Arguments
bf_obj
: The object we want to generate the schema dump for.
Raises
SchemaClassError
: If the provided object is None.
bf_load
def bf_load(dct: _JSONDict, registry: Mapping[str, Any]) ‑> Any:
Method for deserializing an object.
Arguments
dct
: A JSON dictionary with the fields to load.registry
: The registry where we can access the schema type.