common_interface¶
Classes¶
This class helps in transforming its sub-classes to json easily. |
Module Contents¶
- class common_interface.BaseTest¶
This class helps in transforming its sub-classes to json easily. It also helps in creating the object back from those stored jsons.
- to_dict()¶
Automatically convert attributes to a dictionary.
- to_json()¶
Convert the object to a JSON string.
- classmethod from_dict(data)¶
Instantiate an object from a dictionary.
- classmethod from_json(json_input)¶
Instantiate an object from a JSON string or a dictionary.