enumValueOfOrNull

inline fun <E : Enum<E>> enumValueOfOrNull(name: String): E?

Returns an enum entry with specified name.