convert

abstract fun convert(dataItem: DataItem): T?

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