getTicketsWithHttpInfo method
Performs an HTTP 'GET /api/v1/tickets' operation and returns the Response.
Parameters:
Implementation
Future<Response> getTicketsWithHttpInfo(String tenantId, { String? userId, double? state, double? skip, double? limit, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/tickets';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'tenantId', tenantId));
if (userId != null) {
queryParams.addAll(_queryParams('', 'userId', userId));
}
if (state != null) {
queryParams.addAll(_queryParams('', 'state', state));
}
if (skip != null) {
queryParams.addAll(_queryParams('', 'skip', skip));
}
if (limit != null) {
queryParams.addAll(_queryParams('', 'limit', limit));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}