import { type IFSFlagCollection } from "https://deno.land/x/flagship_io_js_sdk@4.0.4/index.ts";
Represents a collection of flags.
Methods
get(key: string): IFSFlag
Retrieves the flag associated with the specified key.
[[Symbol.iterator]](): Iterator<[string, IFSFlag]>
Returns an iterator for the collection.
filter(predicate: () => boolean): IFSFlagCollection
Filters the collection based on a predicate function.
getMetadata(): Map<string, IFSFlagMetadata>
Retrieves the metadata for all flags in the collection.
toJSON(): SerializedFlagMetadata[]
Serializes the metadata for all flags in the collection.