Mechanically, a const dictionary, or a string union might achieve the same.
But semantically, an enum (sometimes) reads better.