Add generic utility functions to ease serialization and deserialization of Components and other clasess.
They are extremely similar to _default_component_to_dict and _default_component_from_dict but with no references to Component as they can be used for any class and object.
Part of #84.
Add generic utility functions to ease serialization and deserialization of Components and other clasess. They are extremely similar to
_default_component_to_dict
and_default_component_from_dict
but with no references toComponent
as they can be used for any class and object.Example usage:
This PR only adds them and their tests to keep it small. Further PRs will remove the default
to_dict
andfrom_dict
added by the@component
decorator.