Build a Option from a Either by returning Some when either is Right, None otherwise.
either
static Option<R> fromEither<L, R>(Either<L, R> either) => either.match((_) => const Option.none(), (r) => Some(r));