Decoder

fun interface Decoder<in I, out O>(source)

Converts serialized payloads into strongly typed domain values.

Parameters

I

serialized input type the decoder consumes.

O

domain output type produced after decoding.

Inheritors

Functions

Link copied to clipboard
abstract fun decode(input: I): EitherNel<String, O>

Attempts to decode the provided input.