createEmergencyAddressWithHttpInfo method

Future<Response> createEmergencyAddressWithHttpInfo(
  1. CreateEmergencyAddressOptions createEmergencyAddressOptions
)

Performs an HTTP 'POST /phone/emergency-addresses' operation and returns the Response. Parameters:

Implementation

Future<Response> createEmergencyAddressWithHttpInfo(CreateEmergencyAddressOptions createEmergencyAddressOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/phone/emergency-addresses';

  // ignore: prefer_final_locals
  Object? postBody = createEmergencyAddressOptions;

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

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


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