restorePhoneNumber method
Restores a deleted phone number.
May throw BadRequestException.
May throw ForbiddenException.
May throw NotFoundException.
May throw ResourceLimitExceededException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter phoneNumberId :
The ID of the phone number being restored.
Implementation
Future<RestorePhoneNumberResponse> restorePhoneNumber({
required String phoneNumberId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/phone-numbers/${Uri.encodeComponent(phoneNumberId)}?operation=restore',
exceptionFnMap: _exceptionFns,
);
return RestorePhoneNumberResponse.fromJson(response);
}