Future<Response<T>> flatMapToResponse<T>(Response<T> Function(B? payload) mapper) async { var res = await this; return res.flatMap(mapper); }