function new(from_asv: GLib.Variant): GLib.VariantDict {
    // Gjs wrapper for g_variant_dict_new()

Allocates and initialises a new GLib.VariantDict.

You should call GLib.VariantDict.prototype.unref on the return value when it is no longer needed. The memory will not be automatically freed by any other call.

In some cases it may be easier to place a GLib.VariantDict directly on the stack of the calling function and initialise it with GLib.VariantDict.init. This is particularly useful when you are using GLib.VariantDict to construct a GLib.Variant.

Since 2.40


the GLib.Variant with which to initialise the dictionary


a GLib.VariantDict