getEC function
Phone Number JSON data for EC
Implementation
Map<String, Object?> getEC() {
return {
"generalDesc": {
"nationalNumberPattern": "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",
"possibleLength": [8, 9, 10, 11],
"possibleLengthLocalOnly": [7]
},
"fixedLine": {
"nationalNumberPattern": "[2-7][2-7]\\d{6}",
"exampleNumber": "22123456",
"possibleLength": [8],
"possibleLengthLocalOnly": [7]
},
"mobile": {
"nationalNumberPattern":
"964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",
"exampleNumber": "991234567",
"possibleLength": [9],
"possibleLengthLocalOnly": [-1]
},
"tollFree": {
"nationalNumberPattern": "1800\\d{7}|1[78]00\\d{6}",
"exampleNumber": "18001234567",
"possibleLength": [10, 11],
"possibleLengthLocalOnly": [-1]
},
"premiumRate": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"sharedCost": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"personalNumber": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"voip": {
"nationalNumberPattern": "[2-7]890\\d{4}",
"exampleNumber": "28901234",
"possibleLength": [8],
"possibleLengthLocalOnly": [-1]
},
"id": "EC",
"countryCode": 593,
"internationalPrefix": "00",
"nationalPrefix": "0",
"nationalPrefixForParsing": "0",
"sameMobileAndFixedLinePattern": false,
"numberFormat": [
{
"pattern": "(\\d{3})(\\d{4})",
"format": "\$1-\$2",
"leadingDigitsPattern": ["[2-7]"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d)(\\d{3})(\\d{4})",
"format": "\$1 \$2-\$3",
"leadingDigitsPattern": ["[2-7]"],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["9"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{3})(\\d{3,4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["1"],
"nationalPrefixOptionalWhenFormatting": false
}
],
"intlNumberFormat": [
{
"pattern": "(\\d)(\\d{3})(\\d{4})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["[2-7]"],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["9"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{3})(\\d{3,4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["1"],
"nationalPrefixOptionalWhenFormatting": false
}
],
"pager": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"mainCountryForCode": false,
"noInternationalDialling": {
"possibleLength": [-1],
"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]
}
};
}