MapperSerializer

constructor(base: KSerializer<I>, serialize: (O) -> I, deserialize: (I) -> O)(source)

Parameters

base

Serializer for I

serialize

Will be used in serialize method to convert incoming O to I and serialize with base

deserialize

Will be used in deserialize method to convert deserialized by base to O