Back to bricks list
Introduction
Technical Documentation
Other Classes
SerializableObjectJson
Version

SerializableObjectJson

Serializable and deserializable object. It must be serialized into a json object and deserialized from a json object.

Functions

SERIALIZE

Serialize the object into a json object. For SerializableRField, this method is called when the resource is saved.

Return type:
Union
DESERIALIZE - @classmethod

Deserialize the object from a json object. For SerializableRField, this method is called when the RField is loaded.

Parameters:
NameTypeDefault valueDescription
dataUnion Json object generated by the serialize method [dict, list, str, bool, float]
Return type:
SerializableObjectJson