GLib.Variant.prototype.unpack
function unpack(): Any { // Gjs wrapper for g_variant_get() }
Transforms the instance GLib.Variant into the most appropriate JS native type.
Basic numeric and string GLib.Variants are converted into JS numbers and strings.
GLib.Variants of type v are converted into the inner variant.
GLib.Variants of maybe types are converted into the inner variant, if there is one, or null.
Array GLib.Variants are converted into JS arrays of the inner variants. As a special case, arrays of type ay are converted into ByteArrays.
Dictionary entries and tuples are converted into JS arrays of the constituents GLib.Variant. As a special case, arrays of dictionary entries are converted into JS objects whose property names are the dictionary keys (converted into JS native types) and whose property values are the GLib.Variants of the dictionary values.