safeValueOf

inline fun <T : Enum<T>> safeValueOf(type: String): T?