deserialize_property


Description:

public virtual bool deserialize_property (string property_name, out Value value, ParamSpec pspec, Node property_node)

Asks a `JsonSerializable` implementation to deserialize the property contained inside `property_node` and place its value into `value`.

The `value` can be:

  • an empty `GValue` 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 `GValue` initialized with the expected type of the property

Parameters:

this

a serializable object

property_name

the name of the property to serialize

value

a pointer to an uninitialized value

pspec

a property description

property_node

the JSON node containing the serialized property

Returns:

`TRUE` if the property was successfully deserialized




2022 vala-language.org