SessionData.from_variant


Description:

[ CCode ( has_construct_function = false ) ]
public SessionData.from_variant (Variant variant)

Converts the Variant to SessionData.

This is useful for example if the dictionary needs to be deserialized, or if it's contained in another SessionData and has been retrieved using @get.

Parameters:

variant

instance of Variant

Returns:

SessionData if successful, NULL otherwise.