serialize

open fun serialize(encoder: <ERROR CLASS>, value: Either<T1, T2>)