serialize


Description:

public unowned Variant serialize ()

Transforms a Location into a Variant, in a way that calling deserialize will hold an equivalent Location.

The resulting variant can then be stored into GSettings or on disk. This call is only valid for cities, weather stations and detached locations. The format of the resulting Variant is private to libgweather, and it is subject to change. You should use the "v" format in GSettings, to ensure maximum compatibility with future versions of the library.

Parameters:

this

a city, weather station or detached Location

Returns:

the serialization of location.




2022 vala-language.org