createTicketWithHttpInfo method

Future<Response> createTicketWithHttpInfo(
  1. String tenantId,
  2. String userId,
  3. CreateTicketBody createTicketBody
)

Performs an HTTP 'POST /api/v1/tickets' operation and returns the Response. Parameters:

Implementation

Future<Response> createTicketWithHttpInfo(String tenantId, String userId, CreateTicketBody createTicketBody) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/tickets';

  // ignore: prefer_final_locals
  Object? postBody = createTicketBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
    queryParams.addAll(_queryParams('', 'userId', userId));

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}