baybe.serialization.core.unstructure_base

baybe.serialization.core.unstructure_base(base: Any, overrides: dict | None = None)[source]

Unstructure an object into a dictionary and adds an entry for the class name.

Parameters:
  • base (Any) – The object that should be unstructured.

  • overrides (Optional[dict]) – An optional dictionary of cattrs-overrides for certain attributes.

Return type:

dict

Returns:

The unstructured dict with the additional entry.