Serializable.deserializeProperty

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.

interface Serializable
bool
deserializeProperty

Parameters

propertyName string

the name of the property to serialize

value gobject.value.Value

a pointer to an uninitialized value

pspec gobject.param_spec.ParamSpec

a property description

propertyNode json.node.Node

the JSON node containing the serialized property

Return Value

Type: bool

TRUE if the property was successfully deserialized