valueOf

fun valueOf(nativeValue: Int): Restriction

Returns the enum entry matching nativeValue, or MAX if not found.