← Back to Stormify Documentation

toInt

fun toInt(value: Any): Int?

Returns the integer value (ordinal or DbValue.dbValue) for the given enum constant, or null if the constant's class has not been registered.