SerialMixin¶
- class baybe.serialization.mixin.SerialMixin[source]¶
Bases:
object
A mixin class providing serialization functionality.
Public methods
__init__
()from_dict
(dictionary)Create an object from its dictionary representation.
from_json
(string)Create an object from its JSON representation.
to_dict
()Create an object's dictionary representation.
to_json
()Create an object's JSON representation.
- classmethod from_dict(dictionary: dict)[source]¶
Create an object from its dictionary representation.