PhoneMetadata constructor

PhoneMetadata({
  1. PhoneNumberDesc? generalDesc,
  2. PhoneNumberDesc? fixedLine,
  3. PhoneNumberDesc? mobile,
  4. PhoneNumberDesc? tollFree,
  5. PhoneNumberDesc? premiumRate,
  6. PhoneNumberDesc? sharedCost,
  7. PhoneNumberDesc? personalNumber,
  8. PhoneNumberDesc? voip,
  9. String? id,
  10. int? countryCode,
  11. String? internationalPrefix,
  12. String? nationalPrefix,
  13. String? preferredExtnPrefix,
  14. String? nationalPrefixForParsing,
  15. String? nationalPrefixTransformRule,
  16. String? preferredInternationalPrefix,
  17. bool? sameMobileAndFixedLinePattern,
  18. Iterable<NumberFormat>? numberFormat,
  19. Iterable<NumberFormat>? intlNumberFormat,
  20. PhoneNumberDesc? pager,
  21. bool? mainCountryForCode,
  22. String? leadingDigits,
  23. PhoneNumberDesc? noInternationalDialling,
  24. PhoneNumberDesc? uan,
  25. PhoneNumberDesc? emergency,
  26. PhoneNumberDesc? voicemail,
  27. PhoneNumberDesc? shortCode,
  28. PhoneNumberDesc? standardRate,
  29. PhoneNumberDesc? carrierSpecific,
  30. bool? mobileNumberPortableRegion,
  31. PhoneNumberDesc? smsServices,
})

Implementation

factory PhoneMetadata({
  PhoneNumberDesc? generalDesc,
  PhoneNumberDesc? fixedLine,
  PhoneNumberDesc? mobile,
  PhoneNumberDesc? tollFree,
  PhoneNumberDesc? premiumRate,
  PhoneNumberDesc? sharedCost,
  PhoneNumberDesc? personalNumber,
  PhoneNumberDesc? voip,
  $core.String? id,
  $core.int? countryCode,
  $core.String? internationalPrefix,
  $core.String? nationalPrefix,
  $core.String? preferredExtnPrefix,
  $core.String? nationalPrefixForParsing,
  $core.String? nationalPrefixTransformRule,
  $core.String? preferredInternationalPrefix,
  $core.bool? sameMobileAndFixedLinePattern,
  $core.Iterable<NumberFormat>? numberFormat,
  $core.Iterable<NumberFormat>? intlNumberFormat,
  PhoneNumberDesc? pager,
  $core.bool? mainCountryForCode,
  $core.String? leadingDigits,
  PhoneNumberDesc? noInternationalDialling,
  PhoneNumberDesc? uan,
  PhoneNumberDesc? emergency,
  PhoneNumberDesc? voicemail,
  PhoneNumberDesc? shortCode,
  PhoneNumberDesc? standardRate,
  PhoneNumberDesc? carrierSpecific,
  $core.bool? mobileNumberPortableRegion,
  PhoneNumberDesc? smsServices,
}) {
  final $result = create();
  if (generalDesc != null) {
    $result.generalDesc = generalDesc;
  }
  if (fixedLine != null) {
    $result.fixedLine = fixedLine;
  }
  if (mobile != null) {
    $result.mobile = mobile;
  }
  if (tollFree != null) {
    $result.tollFree = tollFree;
  }
  if (premiumRate != null) {
    $result.premiumRate = premiumRate;
  }
  if (sharedCost != null) {
    $result.sharedCost = sharedCost;
  }
  if (personalNumber != null) {
    $result.personalNumber = personalNumber;
  }
  if (voip != null) {
    $result.voip = voip;
  }
  if (id != null) {
    $result.id = id;
  }
  if (countryCode != null) {
    $result.countryCode = countryCode;
  }
  if (internationalPrefix != null) {
    $result.internationalPrefix = internationalPrefix;
  }
  if (nationalPrefix != null) {
    $result.nationalPrefix = nationalPrefix;
  }
  if (preferredExtnPrefix != null) {
    $result.preferredExtnPrefix = preferredExtnPrefix;
  }
  if (nationalPrefixForParsing != null) {
    $result.nationalPrefixForParsing = nationalPrefixForParsing;
  }
  if (nationalPrefixTransformRule != null) {
    $result.nationalPrefixTransformRule = nationalPrefixTransformRule;
  }
  if (preferredInternationalPrefix != null) {
    $result.preferredInternationalPrefix = preferredInternationalPrefix;
  }
  if (sameMobileAndFixedLinePattern != null) {
    $result.sameMobileAndFixedLinePattern = sameMobileAndFixedLinePattern;
  }
  if (numberFormat != null) {
    $result.numberFormat.addAll(numberFormat);
  }
  if (intlNumberFormat != null) {
    $result.intlNumberFormat.addAll(intlNumberFormat);
  }
  if (pager != null) {
    $result.pager = pager;
  }
  if (mainCountryForCode != null) {
    $result.mainCountryForCode = mainCountryForCode;
  }
  if (leadingDigits != null) {
    $result.leadingDigits = leadingDigits;
  }
  if (noInternationalDialling != null) {
    $result.noInternationalDialling = noInternationalDialling;
  }
  if (uan != null) {
    $result.uan = uan;
  }
  if (emergency != null) {
    $result.emergency = emergency;
  }
  if (voicemail != null) {
    $result.voicemail = voicemail;
  }
  if (shortCode != null) {
    $result.shortCode = shortCode;
  }
  if (standardRate != null) {
    $result.standardRate = standardRate;
  }
  if (carrierSpecific != null) {
    $result.carrierSpecific = carrierSpecific;
  }
  if (mobileNumberPortableRegion != null) {
    $result.mobileNumberPortableRegion = mobileNumberPortableRegion;
  }
  if (smsServices != null) {
    $result.smsServices = smsServices;
  }
  return $result;
}