Map

data class Map(properties: Map<String, TomlValue>) : TomlValue

Constructors

Map
Link copied to clipboard
fun Map(vararg entries: Pair<String, TomlValue>)

Properties

properties
Link copied to clipboard
val properties: Map<String, TomlValue>

Extensions

write
Link copied to clipboard
fun TomlValue.Map.write(output: Appendable)

Serializes the receiver TomlValue.Map into a valid TOML document and writes it to the given Appendable.

fun TomlValue.Map.write(outputStream: OutputStream)

Serializes the receiver TomlValue.Map into a valid TOML document and writes it to the given OutputStream.

fun TomlValue.Map.write(path: Path)

Serializes the receiver TomlValue.Map into a valid TOML document and writes it to the file represented by the given Path.