request method

Future<ZResponse> request(
  1. ZRequest request
)

Implementation

Future<ZResponse> request(ZRequest request) async {
  // var a = ZRequest(path: "", body : "", queryParameters: null, options : null);
  dio.Response response = await dio.Dio().request(
    request.path,
    data: request.body,
    options: request.options,
    queryParameters: request.queryParameters,
  );
  return ZResponse(request: request, response: response);
}