toml Mapper
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:
List: List, MutableList, Collection or Iterable
Map: Map, MutableMap, SortedMap, or any class with primary constructor fields corresponding to the keys of the TOML document.
Bool: Boolean
Double: Double, Float or BigDecimal
Integer: Int, Long, Float, Double, BigDecimal or BigInteger
String: String
LocalDate: LocalDate
LocalTime: LocalTime
LocalDateTime: LocalDateTime
OffsetDateTime: OffsetDateTime
Additionally, any subclass of TomlValue can always be decoded into itself.