function lookup_value(key: String, expected_type: GLib.VariantType): GLib.Variant {
    // Gjs wrapper for g_variant_dict_lookup_value()

Looks up a value in a GLib.VariantDict.

If key is not found in @dictionary, null is returned.

The expected_type string specifies what type of value is expected. If the value associated with key has a different type then null is returned.

If the key is found and the value has the correct type, it is returned. If expected_type was specified then any non-null return value will have this type.

Since 2.40


the key to lookup in the dictionary


a GLib.VariantType, or null


the value of the dictionary key, or null