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

convert

open override fun convert(dataItem: DataItem): ValueContainer?

Should return an instance of T using the data provided by dataItem.

There are no guarantees for which underlying data type will be provided to convert as a DataItem - implementations should request the appropriate type, and return null if it is not possible to create an instance of T from the DataItem provided.

Return

Reconstructed instance of T

See also

DataItemConvertible
Generated by Dokka
(c) Tealium 2026