getValueAsMapOf

open override fun <T : Any> getValueAsMapOf(type: Class<T>): Map<String, T>?

Gets this JSON value as an associative map from String to a given type. If the conversion is not possible (either the JSON value is not a map or one of its values can't be converted to the given type), this method returns null.

Return

a Map from String to objects of class <T> representing this JSON map

Parameters

type

The Class object associated to the <T> type

<T>

The Java or POJO type to convert the values of this JSON map to