Encoder

interface Encoder<A, B>(source)

Defines translation logic between two types: A and B.

Inheritors

Functions

Link copied to clipboard
abstract fun decode(b: B): Result<A>

Convert b to A

Link copied to clipboard
abstract fun encode(a: A): Result<B>

Convert a to B