deleteInboxForwardersWithHttpInfo method

Future<Response> deleteInboxForwardersWithHttpInfo({
  1. String? inboxId,
})

Delete inbox forwarders

Delete inbox forwarders. Accepts optional inboxId filter.

Note: This method returns the HTTP Response.

Parameters:

  • String inboxId: Optional inbox id to attach forwarder to

Implementation

Future<Response> deleteInboxForwardersWithHttpInfo({ String? inboxId, }) async {
  // ignore: prefer_const_declarations
  final path = r'/forwarders';

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (inboxId != null) {
    queryParams.addAll(_queryParams('', 'inboxId', inboxId));
  }

  const contentTypes = <String>[];


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