DataConversion

class DataConversion : ConversionService

Data conversion feature to serialize and deserialize types using converters registry

Types

Configuration

class Configuration

Data conversion service configuration

Feature

Object for installing feature

Constructors

<init>

DataConversion(converters: Map<Type, ConversionService>)

Data conversion feature to serialize and deserialize types using converters registry

Functions

fromValues

fun fromValues(values: List<String>, type: Type): Any?

Deserialize values to an instance of type

toValues

fun toValues(value: Any?): List<String>

Serialize a value to values list

Companion Object Properties

key

Unique key that identifies a feature

Companion Object Functions

install

fun install(
    pipeline: ApplicationCallPipeline,
    configure: Configuration.() -> Unit
): DataConversion

Feature installation script