super_enum
super_enum copied to clipboard
How can I convert a String to a Enum Type
I would like to generate a super enum Type from a String. I would expect something like:
MyEnum enum = MyEnum.fromString(String Name);
Actually, support for the roundtrip String conversion should be supported from and to String.