Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.data/mapValues

mapValues

fun <T> JSONObject.mapValues(block: (value: Any) -> T): Map<String, T>

Utility function to allow transforming a JSONObject's values.


inline fun <T> DataObject.mapValues(transform: (DataItem) -> T): Map<String, T>

Maps the Map.Entry.value component only, keeping the Map.Entry.key the same.

null values returned by the transform are dropped from the returned Map.

Generated by Dokka
(c) Tealium 2026