Serializable and deserializable object. It must be serialized into a json object and deserialized from a json object.
Functions
Serialize the object into a json object. For SerializableRField, this method is called when the resource is saved.
Return type:
Union |
Deserialize the object from a json object. For SerializableRField, this method is called when the RField is loaded.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
data | Union | Json object generated by the serialize method [dict, list, str, bool, float] |
Return type:
SerializableObjectJson |