enum

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

Return

the value whose name matches (ignoring case and with _s removed) with raw, or null if no match is found

Parameters

raw

raw value to convert to an enum value

values

enum values pool to pick the output value from