Mapper

fun interface Mapper<T : Any, V : Any>

An interface to convert data of type T into V.

Use this to map custom data types to a type that can be handled by a Fetcher.

Inheritors

Functions

Link copied to clipboard
abstract fun map(data: T, options: Options): V?

Convert data into V. Return 'null' if this mapper cannot convert data.