DelegatingConversionService

class DelegatingConversionService(klass: KClass<*>, decoder: (values: List<String>) -> Any??, encoder: (value: Any?) -> List<String>?) : ConversionService

Implementation of ConversionService that delegates fromValues and toValues to decoder and encoder

Constructors

Link copied to clipboard
fun DelegatingConversionService(klass: KClass<*>, decoder: (values: List<String>) -> Any??, encoder: (value: Any?) -> List<String>?)

Types

Link copied to clipboard

Custom convertor builder to be used in DataConversion.Configuration

Functions

Link copied to clipboard
open override fun fromValues(values: List<String>, type: TypeInfo): 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