enumFrom

fun <T : Enum<T>, Enum> enumFrom(clazz: KClass<T>, value: String): T(source)

Looks up the enum constant of clazz whose name equals value.

Throws

if no constant with that name exists.