asMapOf

abstract fun <T : Any> asMapOf(type: KClass<T>): Map<String, T>

Gets this value as a composite Map of values of a given type.

Throws an exception if this value doesn't represent a Map of T.