unFlagCommentWithHttpInfo method

Future<Response> unFlagCommentWithHttpInfo(
  1. String tenantId,
  2. String id, {
  3. String? userId,
  4. String? anonUserId,
})

Performs an HTTP 'POST /api/v1/comments/{id}/un-flag' operation and returns the Response. Parameters:

Implementation

Future<Response> unFlagCommentWithHttpInfo(String tenantId, String id, { String? userId, String? anonUserId, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/comments/{id}/un-flag'
    .replaceAll('{id}', id);

  // 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 (anonUserId != null) {
    queryParams.addAll(_queryParams('', 'anonUserId', anonUserId));
  }

  const contentTypes = <String>[];


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