{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "style": { "display": "flex", "align-items": "center" },
  "attributes": {
    "class": "=if(@currentField == true, 'sp-field-severity--warning', 'sp-field-severity--good')"
  },
  "children": [
    {
      "elmType": "span",
      "style": { "padding": "0 6px" },
      "attributes": {
        "iconName": "=if(@currentField == true, 'Warning', 'CheckMark')"
      }
    },
    {
      "elmType": "span",
      "style": { "padding-right": "6px" },
      "txtContent": "=if(@currentField == true, 'À valider', 'Non requise')"
    }
  ]
}
