parse method

T parse(
  1. String value
)

Parses the given value and returns the corresponding enumeration value.

The value should be a string representation of one of the enumeration values. If the value does not match any of the enumeration values, an exception is thrown.

Implementation

T parse(String value) {
  return values.byName(value);
}