DelegatingConversionService

class DelegatingConversionService : ConversionService

Custom convertor builder

Functions

decode

fun decode(
    converter: (values: List<String>, type: Type) -> Any?
): Unit

Configure decoder function. Only one decoder could be supplied

encode

fun encode(converter: (value: Any?) -> List<String>): Unit

Configure encoder function. Only one encoder could be supplied

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