toggle menu
Arrow
1.2.4
common
switch theme
search in API
arrow-core-serialization
/
arrow.core.serialization
/
EitherSerializer
Either
Serializer
class
EitherSerializer
<
A
,
B
>
(
errorSerializer
:
KSerializer
<
A
>
,
elementSerializer
:
KSerializer
<
B
>
)
:
KSerializer
<
Either
<
A
,
B
>
>
(
source
)
Members
Constructors
Either
Serializer
Link copied to clipboard
constructor
(
errorSerializer
:
KSerializer
<
A
>
,
elementSerializer
:
KSerializer
<
B
>
)
Properties
descriptor
Link copied to clipboard
open
override
val
descriptor
:
SerialDescriptor
Functions
deserialize
Link copied to clipboard
open
override
fun
deserialize
(
decoder
:
Decoder
)
:
Either
<
A
,
B
>
serialize
Link copied to clipboard
open
override
fun
serialize
(
encoder
:
Encoder
,
value
:
Either
<
A
,
B
>
)