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]]
-
classmethod
Serializable Location¶
-
class
CommonSerializableLocation(location: sims4communitylib.classes.math.common_location.CommonLocation)¶ Bases:
sims4communitylib.classes.serialization.common_serializable.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]]
-
classmethod