mapToResponse<T> method

Future<Response<T>> mapToResponse<T>(
  1. T mapper(
    1. B? payload
    )
)

Implementation

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