default_serialize_property


Description:

[ Version ( since = "0.10" ) ]
public Node? default_serialize_property (string property_name, Value value, ParamSpec pspec)

Calls the default implementation of the [vfunc@Json.

Serializable.serialize_property] virtual function.

This function can be used inside a custom implementation of the `serialize_property()` virtual function in lieu of calling the default implementation through `g_type_default_interface_peek()`:

```c JsonSerializable *iface; JsonNode *node;

iface = g_type_default_interface_peek (JSON_TYPE_SERIALIZABLE); node = iface->serialize_property (serializable, property_name, value, pspec); ```

This function will return `NULL` if the property could not be serialized.

Parameters:

this

a serializable object

property_name

the name of the property to serialize

value

the value of the property to serialize

pspec

a property description

Returns:

a node containing the serialized property




2022 vala-language.org