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