Javascript – Can I deserialize a string into an enum with a different value using interfaces?
I'm receiving values in JSON from an API, which can be erroneous because of legacy code that apparently won't be fixed. These values are being deserialized pretty simply by casting the JSON to an interface. This is all well and…