to Enum Or Null
inline fun <E : Enum<E>> TomlLiteral.toEnumOrNull(serializersModule: SerializersModule = EmptySerializersModule()): E?(source)
Returns content as an enum value of the corresponding type only if it suits in, otherwise null.
Parameters
serializers Module
could be ignored, but for contextual serialization, this should be present.