SerializableT

json.serializable.Serializable is an interface for controlling the serialization and deserialization of gobject.object.ObjectG classes.

Implementing this interface allows controlling how the class is going to be serialized or deserialized by func@Json.construct_gobject and func@Json.serialize_gobject, respectively.

Members

Functions

defaultDeserializeProperty
bool defaultDeserializeProperty(string propertyName, gobject.value.Value value, gobject.param_spec.ParamSpec pspec, json.node.Node propertyNode)

Calls the default implementation of the vfuncJson.Serializable.deserialize_property virtual function.

defaultSerializeProperty
json.node.Node defaultSerializeProperty(string propertyName, gobject.value.Value value, gobject.param_spec.ParamSpec pspec)

Calls the default implementation of the vfuncJson.Serializable.serialize_property virtual function.

deserializeProperty
bool deserializeProperty(string propertyName, gobject.value.Value value, gobject.param_spec.ParamSpec pspec, json.node.Node propertyNode)

Asks a json.serializable.Serializable implementation to deserialize the property contained inside property_node and place its value into value.

findProperty
gobject.param_spec.ParamSpec findProperty(string name)

Calls the vfuncJson.Serializable.find_property implementation on the json.serializable.Serializable instance, which will return the property description for the given name.

getProperty
void getProperty(gobject.param_spec.ParamSpec pspec, gobject.value.Value value)

Calls the vfuncJson.Serializable.get_property implementation on the json.serializable.Serializable instance, which will get the value of the given property.

listProperties
gobject.param_spec.ParamSpec[] listProperties()

Calls the vfuncJson.Serializable.list_properties implementation on the json.serializable.Serializable instance, which will return the list of serializable properties.

serializeProperty
json.node.Node serializeProperty(string propertyName, gobject.value.Value value, gobject.param_spec.ParamSpec pspec)

Asks a json.serializable.Serializable implementation to serialize an object property into a JSON node.

setProperty
void setProperty(gobject.param_spec.ParamSpec pspec, gobject.value.Value value)

Calls the vfuncJson.Serializable.set_property implementation on the json.serializable.Serializable instance, which will set the property with the given value.