Toml Mapper Configurator
class TomlMapperConfigurator
Functions
Link 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, tomlValue: T) -> R?)
Link copied to clipboard
Set the given defaultValue as the default for any missing members of data class 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
Extensions
Link copied to clipboard
Delegate the handling of the given type to the given mapper. Overrides any previous configuration for that type, and will be overridden in turn by any subsequent configuration.