DelegatingConversionService

class DelegatingConversionService : ConversionService

Custom convertor builder

Functions

Link copied to clipboard
fun decode(converter: (values: List<String>, type: Type) -> Any?)

Configure decoder function. Only one decoder could be supplied

Link copied to clipboard
fun encode(converter: (value: Any?) -> List<String>)

Configure encoder function. Only one encoder could be supplied

Link copied to clipboard
open override fun fromValues(values: List<String>, type: Type): Any?

Deserialize values to an instance of type

Link copied to clipboard
open override fun toValues(value: Any?): List<String>

Serialize a value to values list