invoke method

Future<ApiResponse> invoke(
  1. String path,
  2. String method,
  3. QueryParams queryParams,
  4. Iterable<PFile> files,
  5. Object body,
  6. Map<String, String?> headerParams,
  7. Map<String, String> formParams,
  8. String contentType,
  9. List<String>? authNames, {
  10. String? basePath,
})

Implementation

Future<ApiResponse> invoke(
    String path,
    String method,
    QueryParams queryParams,
    Iterable<PFile> files,
    Object body,
    Map<String, String?> headerParams,
    Map<String, String> formParams,
    String contentType,
    List<String>? authNames,
    {String? basePath}) async {
  authNames ??= [
    if (defaultAuthName != null) defaultAuthName!,
  ];

  await updateParamsForAuth(authNames.toSet(), queryParams, headerParams);

  return transport.invokeAPI(path, method, queryParams, files, body,
      headerParams, formParams, contentType,
      basePath: basePath);
}