TomlLiteral

Creates a TomlLiteral from boolean.


Creates a TomlLiteral from byte.


Creates a TomlLiteral from short.


Creates a TomlLiteral from int.


Creates a TomlLiteral from long.


Creates a TomlLiteral from uByte.


Creates a TomlLiteral from uShort.


Creates a TomlLiteral from uInt.


Creates a TomlLiteral from uLong.


Creates a TomlLiteral from float.

See also

toStringModified

Creates a TomlLiteral from double.

See also

toStringModified

Creates a TomlLiteral from char.


Creates a TomlLiteral from string.


Creates a TomlLiteral from localDateTime.


Creates a TomlLiteral from offsetDateTime.


Creates a TomlLiteral from localDate.


Creates a TomlLiteral from localTime.


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

Creates a TomlLiteral from enum.

Note that this function delegates to the overload which consumes String.

Parameters

serializersModule

could be ignored, but for contextual serialization, this should be present.


Deprecated

Use overloads with specific type.

Replace with

TomlLiteral