Insomnia-Script-SDK-Docs
    Preparing search index...

    Class Folder

    Represents a folder with a unique identifier, name, and an associated environment.

    The Folder class provides functionality to manage folder-level environment variables and convert the folder instance into a plain JavaScript object representation.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructs a new instance of the Folder class.

      Parameters

      • id: string

        The unique identifier for the folder.

      • name: string

        The name of the folder.

      • environmentObject: undefined | object

        An optional object representing the associated folder-level environment.

      Returns Folder

    Properties

    environment: Environment

    Represents the environment associated with the folder. Provides access to folder-level environment variables.

    id: string

    A unique identifier for the folder.

    name: string

    The name of the folder.

    Methods

    • Converts the folder instance into a plain JavaScript object representation.

      Returns {
          environment: { [k: string]: undefined | string | number | boolean };
          id: string;
          name: string;
      }

      An object containing the folder's id, name, and environment properties. The environment property is also converted to its object representation.