valueOfOrNull

Convert from a value of any type to an Enum class.

Return

An Enum class if the value can be converted, or null otherwise.

Parameters

value

A value of any type

See also