apiV2ChatMarkTermsAsAcceptedCreateWithHttpInfo method

Future<Response> apiV2ChatMarkTermsAsAcceptedCreateWithHttpInfo(
  1. int id, {
  2. Chat? chat,
})

Performs an HTTP 'POST /api/v2/chat/{id}/mark_terms_as_accepted/' operation and returns the Response. Parameters:

Implementation

Future<Response> apiV2ChatMarkTermsAsAcceptedCreateWithHttpInfo(int id, { Chat? chat, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v2/chat/{id}/mark_terms_as_accepted/'
    .replaceAll('{id}', id.toString());

  // ignore: prefer_final_locals
  Object? postBody = chat;

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

  const contentTypes = <String>['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];


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