Convenience wrapper around Enum.toString that infers the type of the enum
to instantiate it with from the passed enum member.
Limitations:
Does not work with enums whose members' values cannot be used in a
switch statement. This includes enums with members that share values
with other members, as well as enums of values that are non-string
arrays or other complex types.
Convenience wrapper around Enum.toString that infers the type of the enum to instantiate it with from the passed enum member.
Limitations: Does not work with enums whose members' values cannot be used in a switch statement. This includes enums with members that share values with other members, as well as enums of values that are non-string arrays or other complex types.