encode

fun TomlEncoder.encode(value: Any): TomlValue

Encode the given value using the receiver encoder.