{
  "entry": {
    "canAdd": true,
    "layoutObject": {
      "title": "Matches 2nd case",
      "description": "In this case the second case matches.",
      "url": "https://github.com/uPortal-Project/uportal-app-framework/blob/master/docs/make-a-widget.md#switch-widget-type",
      "iconUrl": null,
      "mdIcon": "switch_camera",
      "fname": "sample-widget__switch_2",
      "lifecycleState": "PUBLISHED",
      "target": "_blank",
      "widgetURL": "/staticFeeds/enrollment-flag-H.json",
      "widgetType": "switch",
      "widgetTemplate": null,
      "widgetConfig": {
        "expression": "report[0].enrollmentFlag",
        "cases": [
          {
            "matchValue": "O",
            "widgetType": "list-of-links",
            "widgetConfig": {
              "links": [
                {
                  "title": "Matched the first case",
                  "href": "",
                  "icon": "fa-at",
                  "target": "_blank"
                },
                {
                  "title": "Dynamic value was O",
                  "href": "",
                  "icon": "fa-at",
                  "target": "_blank"
                }
              ]
            }
          },
          {
            "matchValue": "H",
            "widgetType": "list-of-links",
            "widgetConfig": {
              "links": [
                {
                  "title": "Matched the second case",
                  "href": "",
                  "icon": "fa-at",
                  "target": "_blank"
                },
                {
                  "title": "Dynamic value was H",
                  "href": "",
                  "icon": "fa-at",
                  "target": "_blank"
                }
              ],
              "launchText": "Second case matched"
            }
          }
        ],
        "defaultCase": {
          "widgetType": "search-with-links",
          "widgetConfig": {
            "actionURL": "https://rprg.wisc.edu/",
            "actionTarget": "_blank",
            "actionParameter": "s",
            "launchText": "Should not display",
            "links": [
              {
                "title": "Default case",
                "href": "https://rprg.wisc.edu/phases/initiate/",
                "icon": "fa-map-o",
                "target": "_blank"
              },
              {
                "title": "Should not display",
                "href": "https://rprg.wisc.edu/category/resource/",
                "icon": "fa-th-list",
                "target": "_blank"
              }
            ]
          }
        }
      },
      "staticContent": null,
      "pithyStaticContent": null,
      "altMaxUrl": true,
      "renderOnWeb": false
    },
    "keywords": [
      "complex",
      "composed",
      "composite",
      "flexible",
      "meta"
    ],
    "fname": "sample-widget__switch_2",
    "lifecycleState": "PUBLISHED",
    "rating": 4.5,
    "portletWebAppName": "/AintGotNoPortlet",
    "maxUrl": "https://github.com/uPortal-Project/uportal-app-framework/blob/master/docs/make-a-widget.md#switch-widget-type",
    "shortUrl": null,
    "marketplaceScreenshots": [],
    "userRated": 2,
    "portletReleaseNotes": {
      "releaseDate": null,
      "initialReleaseDate": null,
      "releaseNotes": null
    },
    "renderUrl": "https://github.com/uPortal-Project/uportal-app-framework/blob/master/docs/make-a-widget.md#switch-widget-type",
    "title": "Matches 2nd case",
    "categories": [
      "Widget types"
    ],
    "portletName": "AintGotNoPortlet",
    "name": "Matches 2nd case",
    "id": "2742",
    "type": "Portlet",
    "target": "_blank",
    "description": "This widget switches runtime type depending upon a JSON feed"
  }
}
