getOrNull

inline fun <T : Any> getOrNull(): T?(source)

The loaded config of type T, or null if there is none.


fun <T : Any> getOrNull(type: KClass<T>): T?(source)

The loaded config of type, or null if there is none. Also null when type appears more than once among the nested specs, since it is ambiguous.