Serialization¶
Serializable¶
- class CommonSerializable¶
Bases:
objectIndicates an object can be serialized and deserialized.
- classmethod deserialize(data)¶
Deserialize the object from a JSON Serializable form.
- Returns:
The deserialized form of the object or None if it fails to deserialize.
- Return type:
Union[CommonSerializableType, None]
- serialize()¶
Serialize the object into a JSON Serializable form.
- Returns:
A serializable representation of the object.
- Return type:
Union[str, Dict[str, Any]]
Serializable Location¶
- class CommonSerializableLocation(location)¶
Bases:
CommonSerializableA wrapper to serialize/deserialize a CommonLocation.
- classmethod deserialize(data)¶
Deserialize the object from a JSON Serializable form.
- Returns:
The deserialized form of the object or None if it fails to deserialize.
- Return type:
Union[CommonSerializableType, None]
- serialize()¶
Serialize the object into a JSON Serializable form.
- Returns:
A serializable representation of the object.
- Return type:
Union[str, Dict[str, Any]]