valueOf

inline fun <EnumT : Enum<EnumT>, FRBaseEnum<TypeT>, TypeT> valueOf(value: TypeT, defaultValue: EnumT): EnumT

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

Return

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

Parameters

value

A value of any type

See also