fromOrdinal

inline fun <E : Enum<*>> Enum.Companion.fromOrdinal(ordinal: Int, orElse: (Int) -> E = { throw LevelConversionException { "Couldn't convert $ordinal to an enum of ${E::class.simpleName}" } }): E

Get an enum instance from the ordinal value.