Serializable.deserializeProperty

bool deserializeProperty(string propertyName, out 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.

The value can be:

  • an empty [gobject.value.Value] initialized by G_VALUE_INIT, which will be automatically

initialized with the expected type of the property by using the given property description (since JSON-GLib 1.6)

  • a [gobject.value.Value] initialized with the expected type of the property

This function will not be called for properties that are marked as as G_PARAM_CONSTRUCT_ONLY.

Parameters

propertyNamethe name of the property to serialize
valuea pointer to an uninitialized value
pspeca property description
propertyNodethe JSON node containing the serialized property

Returns

TRUE if the property was successfully deserialized