@override Resource<R> map(Either<Exception, R> data) { return data.match( (l) => Resource.error(failure: l), (r) => Resource.success(r)); }