PhoneNumber constructor
PhoneNumber({})
Implementation
factory PhoneNumber({
$core.int? countryCode,
$fixnum.Int64? nationalNumber,
$core.String? extension_3,
$core.bool? italianLeadingZero,
$core.String? rawInput,
PhoneNumber_CountryCodeSource? countryCodeSource,
$core.String? preferredDomesticCarrierCode,
$core.int? numberOfLeadingZeros,
}) {
final $result = create();
if (countryCode != null) {
$result.countryCode = countryCode;
}
if (nationalNumber != null) {
$result.nationalNumber = nationalNumber;
}
if (extension_3 != null) {
$result.extension_3 = extension_3;
}
if (italianLeadingZero != null) {
$result.italianLeadingZero = italianLeadingZero;
}
if (rawInput != null) {
$result.rawInput = rawInput;
}
if (countryCodeSource != null) {
$result.countryCodeSource = countryCodeSource;
}
if (preferredDomesticCarrierCode != null) {
$result.preferredDomesticCarrierCode = preferredDomesticCarrierCode;
}
if (numberOfLeadingZeros != null) {
$result.numberOfLeadingZeros = numberOfLeadingZeros;
}
return $result;
}