{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "div",
  "children": [
    {
      "elmType": "span",
      "attributes": {
        "class": {
          "operator": "?",
          "operands": [
            {
              "operator": "==",
              "operands": [
                "@currentField",
                "Down"
              ]
            },
            "sp-field-trending--up",
            {
              "operator": "?",
              "operands": [
                {
                  "operator": "==",
                  "operands": [
                    "@currentField",
                    "Up"
                  ]
                },
                "sp-field-trending--down",
                ""
              ]
            }
          ]
        },
        "iconName": {
          "operator": "?",
          "operands": [
            {
              "operator": "==",
              "operands": [
                "@currentField",
                "Down"
              ]
            },
            "SortDown",
            {
              "operator": "?",
              "operands": [
                {
                  "operator": "==",
                  "operands": [
                    "@currentField",
                    "Up"
                  ]
                },
                "SortUp",
                {
                  "operator": "?",
                  "operands": [
                    {
                      "operator": "==",
                      "operands": [
                        "@currentField",
                        "Level"
                      ]
                    },
                    "Split",
                    ""
                  ]
                }
              ]
            }
          ]
        }
      },
      "style": {
        "padding-right": "10px"
      }
    },
    {
      "elmType": "span",
      "txtContent": "@currentField"
    }
  ]
}