SharePoint 2019 On Prem – Modern experience – Conditional Formatting not working

Environment: SharePoint 2019 On Premise

Requirement: If a Number column value is equal to 0 then set sp-field-severity–good else set sp-field-severity–warning

Based on the article at Use column formatting to customize SharePoint have prepared and set the below JSON

“$schema”: “”,
“elmType”: “div”,
“txtContent”: “@currentField”,
“attributes”: {
“class”: “=if(@currentField <= 0,’sp-field-severity–good’, ‘sp-field-severity–warning’)”

However it doesn’t work.

I tried to check the DOM it shows as bellow

enter image description here

Note: as per the instructions in MS article i am using schema as it is SP 2019 On Prem.

What am i missing?