get

fun <T : Any> get(type: KType, key: String): T?

Gets the value under key as type or null if it doesn't exist.

Throws

If type is incompatible with an existing entry and JVM assertions are enabled.


inline operator fun <T : Any> get(key: String): T?

Gets the value under key as T or null if it doesn't exist.

Throws

If T is incompatible with an existing entry and JVM assertions are enabled.