Toml Mapper Configurator
Functions
Link copied to clipboard
inline fun <T : TomlValue, R : Any> decoder(crossinline decoder: TomlDecoder.(T) -> R?)
Content copied to clipboard
Convenience overload for decoder, for when you don't need to consider the full target KType.
inline fun <T : TomlValue, R : Any> decoder(noinline decoder: TomlDecoder.(targetType: KType, T) -> R?)
Content copied to clipboard
Link copied to clipboard
Set the given defaultValue as the default for any missing values of type T. Any time an object of type T is being decoded but the TOML document is missing one or more fields needed to construct the object, that value will be fetched from the default value.
Link copied to clipboard
inline fun <T : Any> encoder(noinline encoder: TomlEncoder.(T) -> TomlValue)
Content copied to clipboard