ApiRequest constructor

const ApiRequest({
  1. required RequestMethod method,
  2. required String path,
  3. bool isRead = false,
  4. Map<String, dynamic>? headers,
  5. Map<String, dynamic>? queryParams,
  6. dynamic body,
})

Constructs an ApiRequest with the provided method, path, read/write type, headers, query parameters, and body.

Implementation

const ApiRequest({
  required this.method,
  required this.path,
  this.isRead = false,
  this.headers,
  this.queryParams,
  this.body,
});