phoneNumberValidate method
Future<PhoneNumberValidateResponse>
phoneNumberValidate({
- required NumberValidateRequest numberValidateRequest,
Retrieves information about a phone number.
May throw BadRequestException. May throw InternalServerErrorException. May throw PayloadTooLargeException. May throw ForbiddenException. May throw NotFoundException. May throw MethodNotAllowedException. May throw TooManyRequestsException.
Implementation
Future<PhoneNumberValidateResponse> phoneNumberValidate({
required NumberValidateRequest numberValidateRequest,
}) async {
ArgumentError.checkNotNull(numberValidateRequest, 'numberValidateRequest');
final response = await _protocol.sendRaw(
payload: numberValidateRequest,
method: 'POST',
requestUri: '/v1/phone/number/validate',
exceptionFnMap: _exceptionFns,
);
final $json = await _s.jsonFromResponse(response);
return PhoneNumberValidateResponse(
numberValidateResponse: NumberValidateResponse.fromJson($json),
);
}