enum

fun enum(raw: Any, values: Array<Enum<*>>): EnumValue

Return

the value whose name matches (ignoring case and with _s removed) with raw

Parameters

raw

raw value to convert to an enum value

values

enum values pool to pick the output value from

Throws

if no value matches raw