JSDoc: Class: Sequence

# Class: Sequence

## action.Sequence()

Represents one input source action sequence; this is essentially an |Array.|.

## Constructor

#### new Sequence()

Source:
  - action.js, line 795

### Methods

#### (static) fromJSON(actionSequence) → {action.Sequence}

##### Parameters:

Name | Type | Description
--- | --- | ---
`actionSequence` | Object.<string, ?> | Object that represents a sequence action items for one input source.

Source:
  - action.js, line 813

##### Throws:

If `actionSequence.id` is not a string or it's aleady mapped to an |action.InputState} incompatible with `actionSequence.type`, or if `actionSequence.actions` is not an `Array`.

Type
  InvalidArgumentError

##### Returns:

Sequence of actions that can be dispatched.

Type
  action.Sequence