invokeAPI method
Implementation
Future<ApiResponse> invokeAPI(String path, Iterable<QueryParam> qParams,
Object? body, List<String> authNames, Options options) async {
// addAll(options?.headers?.cast<String, String>() ?? {});
List<QueryParam> queryParams = []..addAll(qParams);
Map<String, dynamic> headers = options.headers ?? {};
_updateParamsForAuth(authNames, queryParams, headers);
headers.addAll(_defaultHeaderMap);
options.headers = headers;
return apiClientDelegate.invokeAPI(
basePath, path, queryParams, body, options,
passErrorsAsApiResponses: passErrorsAsApiResponses);
}