deletePhoneNumberWithHttpInfo method

Future<Response> deletePhoneNumberWithHttpInfo(
  1. String phoneNumberId
)

Performs an HTTP 'DELETE /phone/numbers/{phoneNumberId}' operation and returns the Response. Parameters:

  • String phoneNumberId (required):

Implementation

Future<Response> deletePhoneNumberWithHttpInfo(String phoneNumberId,) async {
  // ignore: prefer_const_declarations
  final path = r'/phone/numbers/{phoneNumberId}'
    .replaceAll('{phoneNumberId}', phoneNumberId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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