getBR function

Map<String, Object?> getBR()

Phone Number JSON data for BR

Implementation

Map<String, Object?> getBR() {
  return {
    "generalDesc": {
      "nationalNumberPattern":
          "(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",
      "possibleLength": [8, 9, 10, 11],
      "possibleLengthLocalOnly": [8, 9]
    },
    "fixedLine": {
      "nationalNumberPattern":
          "(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",
      "exampleNumber": "1123456789",
      "possibleLength": [10],
      "possibleLengthLocalOnly": [8]
    },
    "mobile": {
      "nationalNumberPattern":
          "(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",
      "exampleNumber": "11961234567",
      "possibleLength": [10, 11],
      "possibleLengthLocalOnly": [8, 9]
    },
    "tollFree": {
      "nationalNumberPattern": "800\\d{6,7}",
      "exampleNumber": "800123456",
      "possibleLength": [9, 10],
      "possibleLengthLocalOnly": [-1]
    },
    "premiumRate": {
      "nationalNumberPattern": "300\\d{6}|[59]00\\d{6,7}",
      "exampleNumber": "300123456",
      "possibleLength": [9, 10],
      "possibleLengthLocalOnly": [-1]
    },
    "sharedCost": {
      "nationalNumberPattern":
          "(?:30[03]\\d{3}|4(?:0(?:0\\d|20)|370))\\d{4}|300\\d{5}",
      "exampleNumber": "40041234",
      "possibleLength": [8, 10],
      "possibleLengthLocalOnly": [-1]
    },
    "personalNumber": {
      "possibleLength": [-1],
      "possibleLengthLocalOnly": [-1]
    },
    "voip": {
      "possibleLength": [-1],
      "possibleLengthLocalOnly": [-1]
    },
    "id": "BR",
    "countryCode": 55,
    "internationalPrefix": "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)",
    "nationalPrefix": "0",
    "nationalPrefixForParsing":
        "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?",
    "nationalPrefixTransformRule": "\$2",
    "sameMobileAndFixedLinePattern": false,
    "numberFormat": [
      {
        "pattern": "(\\d{3,6})",
        "format": "\$1",
        "leadingDigitsPattern": [
          "1(?:1[25-8]|2[357-9]|3[02-68]|4[12568]|5|6[0-8]|8[015]|9[0-47-9])|321|610"
        ],
        "nationalPrefixOptionalWhenFormatting": false
      },
      {
        "pattern": "(\\d{4})(\\d{4})",
        "format": "\$1-\$2",
        "leadingDigitsPattern": ["300|4(?:0[02]|37)", "4(?:02|37)0|[34]00"],
        "nationalPrefixOptionalWhenFormatting": false
      },
      {
        "pattern": "(\\d{4})(\\d{4})",
        "format": "\$1-\$2",
        "leadingDigitsPattern": [
          "[2-57]",
          "[2357]|4(?:[0-24-9]|3(?:[0-689]|7[1-9]))"
        ],
        "nationalPrefixOptionalWhenFormatting": false
      },
      {
        "pattern": "(\\d{3})(\\d{2,3})(\\d{4})",
        "format": "\$1 \$2 \$3",
        "leadingDigitsPattern": ["(?:[358]|90)0"],
        "nationalPrefixFormattingRule": "0\$1",
        "nationalPrefixOptionalWhenFormatting": false
      },
      {
        "pattern": "(\\d{5})(\\d{4})",
        "format": "\$1-\$2",
        "leadingDigitsPattern": ["9"],
        "nationalPrefixOptionalWhenFormatting": false
      },
      {
        "pattern": "(\\d{2})(\\d{4})(\\d{4})",
        "format": "\$1 \$2-\$3",
        "leadingDigitsPattern": [
          "(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"
        ],
        "nationalPrefixFormattingRule": "(\$1)",
        "domesticCarrierCodeFormattingRule": "0 \$CC (\$1)",
        "nationalPrefixOptionalWhenFormatting": false
      },
      {
        "pattern": "(\\d{2})(\\d{5})(\\d{4})",
        "format": "\$1 \$2-\$3",
        "leadingDigitsPattern": ["[16][1-9]|[2-57-9]"],
        "nationalPrefixFormattingRule": "(\$1)",
        "domesticCarrierCodeFormattingRule": "0 \$CC (\$1)",
        "nationalPrefixOptionalWhenFormatting": false
      }
    ],
    "intlNumberFormat": [
      {
        "pattern": "(\\d{4})(\\d{4})",
        "format": "\$1-\$2",
        "leadingDigitsPattern": ["300|4(?:0[02]|37)", "4(?:02|37)0|[34]00"],
        "nationalPrefixOptionalWhenFormatting": false
      },
      {
        "pattern": "(\\d{3})(\\d{2,3})(\\d{4})",
        "format": "\$1 \$2 \$3",
        "leadingDigitsPattern": ["(?:[358]|90)0"],
        "nationalPrefixFormattingRule": "0\$1",
        "nationalPrefixOptionalWhenFormatting": false
      },
      {
        "pattern": "(\\d{2})(\\d{4})(\\d{4})",
        "format": "\$1 \$2-\$3",
        "leadingDigitsPattern": [
          "(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"
        ],
        "nationalPrefixFormattingRule": "(\$1)",
        "domesticCarrierCodeFormattingRule": "0 \$CC (\$1)",
        "nationalPrefixOptionalWhenFormatting": false
      },
      {
        "pattern": "(\\d{2})(\\d{5})(\\d{4})",
        "format": "\$1 \$2-\$3",
        "leadingDigitsPattern": ["[16][1-9]|[2-57-9]"],
        "nationalPrefixFormattingRule": "(\$1)",
        "domesticCarrierCodeFormattingRule": "0 \$CC (\$1)",
        "nationalPrefixOptionalWhenFormatting": false
      }
    ],
    "pager": {
      "possibleLength": [-1],
      "possibleLengthLocalOnly": [-1]
    },
    "mainCountryForCode": false,
    "noInternationalDialling": {
      "nationalNumberPattern":
          "30(?:0\\d{5,7}|3\\d{7})|40(?:0\\d|20)\\d{4}|800\\d{6,7}",
      "possibleLength": [8, 9, 10],
      "possibleLengthLocalOnly": [-1]
    },
    "uan": {
      "possibleLength": [-1],
      "possibleLengthLocalOnly": [-1]
    },
    "emergency": {
      "possibleLength": [-1],
      "possibleLengthLocalOnly": [-1]
    },
    "voicemail": {
      "possibleLength": [-1],
      "possibleLengthLocalOnly": [-1]
    },
    "shortCode": {
      "possibleLength": [-1],
      "possibleLengthLocalOnly": [-1]
    },
    "standardRate": {
      "possibleLength": [-1],
      "possibleLengthLocalOnly": [-1]
    },
    "carrierSpecific": {
      "possibleLength": [-1],
      "possibleLengthLocalOnly": [-1]
    },
    "mobileNumberPortableRegion": true,
    "smsServices": {
      "possibleLength": [-1],
      "possibleLengthLocalOnly": [-1]
    }
  };
}