known

Returns an enum member corresponding to this class instance's value.

Use the value method instead if you're uncertain the value is always known and don't want to throw for the unknown case.

Throws

if this class instance's value is a not a known member.