{
  "context": {
    "toggleCount": 0
  },
  "id": "toggleSwitch",
  "initial": "off",
  "states": {
    "off": {
      "on": {
        "TOGGLE": {
          "actions": [
            "increment_toggles"
          ],
          "target": "on"
        }
      }
    },
    "on": {
      "on": {
        "TOGGLE": {
          "actions": [
            "increment_toggles"
          ],
          "target": "off"
        }
      }
    }
  }
}
