RequestInput constructor

RequestInput({
  1. required String endpoint,
  2. required RequestMethod method,
  3. List<String>? pathParams,
  4. Map<String, dynamic>? queryParams,
  5. Map<String, String>? headers,
  6. Map<String, dynamic>? formFields,
  7. Map<String, dynamic>? jsonBody,
  8. Map<String, dynamic>? files,
  9. Duration? timeout,
  10. dynamic onSendProgress(
    1. int,
    2. int
    )?,
  11. dynamic onReceiveProgress(
    1. int,
    2. int
    )?,
  12. bool requiresToken = true,
  13. CancelToken? cancelToken,
  14. List<Map<String, dynamic>>? listBody,
})

Implementation

RequestInput({
  required this.endpoint,
  required this.method,
  this.pathParams,
  this.queryParams,
  this.headers,
  this.formFields,
  this.jsonBody,
  this.files,
  this.timeout,
  this.onSendProgress,
  this.onReceiveProgress,
  this.requiresToken = true,
  this.cancelToken,
  this.listBody,
});