const GObject = imports.gi.GObject; let flagsClass = new GObject.FlagsClass({ mask: value n_values: value });
The class of a flags type holds information about its possible values.