EitherSerializer

class EitherSerializer<A, B>(errorSerializer: KSerializer<A>, elementSerializer: KSerializer<B>) : KSerializer<Either<A, B>> (source)

Constructors

Link copied to clipboard
constructor(errorSerializer: KSerializer<A>, elementSerializer: KSerializer<B>)

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

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