emap<B> method

Decoder<B> emap<B>(
  1. Either<DecodingError, B> f(
    1. A
    )
)

Implementation

Decoder<B> emap<B>(Either<DecodingError, B> Function(A) f) =>
    Decoder._unkeyed((json) => decode(json).flatMap(f));