tomlMapper

fun tomlMapper(configuration: TomlMapperConfigurator.() -> Unit): TomlMapper

Creates a new TOML mapper with the given configuration. In the interest of efficiency, consider creating a mapper once and then keeping it around for the duration of your program, rather than re-creating it every time you need to process a TOML value.


Without any extra configuration, TOML types can be decoded to Kotlin types as follows:

Additionally, any subclass of TomlValue can always be decoded into itself.