Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.settings/Mappings/mapFrom

mapFrom

abstract fun mapFrom(key: String, destination: String): Mappings.VariableOptions

Adds a mapping where the key and destination are in the top level of the payload.

Returns a VariableOptions with which to configure some options if required.

Parameters

key

The key to take the value from and place it in the mapped payload at the destination key

destination

The destination key to store the mapped value


abstract fun mapFrom(path: JsonObjectPath, destination: String): Mappings.VariableOptions

Adds a mapping where the destination is to be in the top level of the mapped payload, but the source key is defined at some nested object/list as defined by path.

Returns a VariableOptions with which to configure some options if required.

Parameters

path

The path used to take the value from and place it in the mapped payload at the destination key

destination

The destination key to store the mapped value


abstract fun mapFrom(key: String, destination: JsonObjectPath): Mappings.VariableOptions

Adds a mapping where the key is to be found in the top level of the input payload, but the destination key is to be defined at some nested object/list as defined by destination.

Returns a VariableOptions with which to configure some options if required.

Parameters

key

The key to take the value from and place it in the mapped payload at the destination key

destination

The destination key path to store the mapped value


abstract fun mapFrom(path: JsonObjectPath, destination: JsonObjectPath): Mappings.VariableOptions

Adds a mapping where both the path and destination can be located/stored at some configured level of nesting as defined by the JsonObjectPath for each input.

Returns a VariableOptions with which to configure some options if required.

Parameters

path

The path to take the value from and place it in the mapped payload at the destination key

destination

The destination key path to store the mapped value

Generated by Dokka
(c) Tealium 2026