TomlLiteral

Creates TomlLiteral from the given boolean value.


Creates TomlLiteral from the given numeric value.

See also

toStringModified

Creates TomlLiteral from the given char value.


Creates TomlLiteral from the given string value.


inline fun <E : Enum<E>> TomlLiteral(value: E, serializersModule: SerializersModule = EmptySerializersModule()): TomlLiteral(source)

Creates TomlLiteral from the given enum value. Delegates to creator function which consumes string.

Parameters

E

the enum class which value belongs to.

serializersModule

in most case could be ignored, but for contextual it should be present.