fillByDefault

inline fun <T : Any> fillByDefault(): T

Creates a new config instance using only Kotlin primary constructor default values.

All parameters must have default values in the primary constructor, otherwise an exception will be thrown for missing non-nullable parameters.

No file I/O or parsing is performed.

Example:

val defaults = Yacla.fillByDefault<AppConfig>()

fun <T : Any> fillByDefault(clazz: Class<T>): T

Java-friendly overload of fillByDefault.