EitherSerializer

class EitherSerializer<T1, T2>(t1Serializer: KSerializer<T1>, t2Serializer: KSerializer<T2>) : KSerializer<Either<T1, T2>>

Constructors

Link copied to clipboard
fun <T1, T2> EitherSerializer(t1Serializer: KSerializer<T1>, t2Serializer: KSerializer<T2>)

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Either<T1, T2>
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Either<T1, T2>)

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor