encode

fun encode(value: Any): TomlValue

Encode the given value into a TomlValue using the receiver TomlTranscoder.

See TomlEncoder.encode for information about which types can be encoded.