https://kotlinlang.org logo
u

540grunkspin

01/16/2019, 9:10 AM
Have you tried
fun <T : Enum<T>> toEnum(value: String?): T?