decodeWithDefaults

inline fun <T> TomlMapper.decodeWithDefaults(defaultValue: T, string: String): T

Like decode, but fills in any values missing from the input string with values from the given defaultValue.


inline fun <T> TomlMapper.decodeWithDefaults(defaultValue: T, stream: InputStream): T

Like decode, but fills in any values missing from the input stream with values from the given defaultValue.


inline fun <T> TomlMapper.decodeWithDefaults(defaultValue: T, path: Path): T

Like decode, but fills in any values missing from the input file with values from the given defaultValue.