@zeplin/extension-model
    Preparing search index...

    Class Variable

    An interface that represents a variable.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Parameters

      • variableData: VariableData
      • OptionalvariableGroupName: string
      • OptionalvariableBySourceId: Record<string, any>
      • Optionalplatform: string

      Returns Variable

    Properties

    name: string

    Formatted name of the variable.

    originalName: string

    Original name of the variable.

    sourceId: string

    Unique identifier of the variable.

    values: VariableValue[] = []

    Values of the variable for different modes.

    Accessors

    • get ALLOWED_FIELDS(): string[]

      Returns string[]

    Methods

    • Creates a Variable instance from a JSON string

      Parameters

      • json: string

        JSON string representing a variable

      Returns Variable

      A new Variable instance