getMX function
Phone Number JSON data for MX
Implementation
Map<String, Object?> getMX() {
return {
"generalDesc": {
"nationalNumberPattern": "[2-9]\\d{9}",
"possibleLength": [10],
"possibleLengthLocalOnly": [7, 8]
},
"fixedLine": {
"nationalNumberPattern":
"657[12]\\d{6}|(?:2(?:0[01]|2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]\\d|7[12]|8[1-8]))\\d{7}",
"exampleNumber": "2001234567",
"possibleLength": [10],
"possibleLengthLocalOnly": [7, 8]
},
"mobile": {
"nationalNumberPattern":
"657[12]\\d{6}|(?:2(?:2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]\\d|7[12]|8[1-8]))\\d{7}",
"exampleNumber": "2221234567",
"possibleLength": [10],
"possibleLengthLocalOnly": [7, 8]
},
"tollFree": {
"nationalNumberPattern": "8(?:00|88)\\d{7}",
"exampleNumber": "8001234567",
"possibleLength": [10],
"possibleLengthLocalOnly": [-1]
},
"premiumRate": {
"nationalNumberPattern": "900\\d{7}",
"exampleNumber": "9001234567",
"possibleLength": [10],
"possibleLengthLocalOnly": [-1]
},
"sharedCost": {
"nationalNumberPattern": "300\\d{7}",
"exampleNumber": "3001234567",
"possibleLength": [10],
"possibleLengthLocalOnly": [-1]
},
"personalNumber": {
"nationalNumberPattern": "500\\d{7}",
"exampleNumber": "5001234567",
"possibleLength": [10],
"possibleLengthLocalOnly": [-1]
},
"voip": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"id": "MX",
"countryCode": 52,
"internationalPrefix": "0[09]",
"preferredInternationalPrefix": "00",
"sameMobileAndFixedLinePattern": false,
"numberFormat": [
{
"pattern": "(\\d{5})",
"format": "\$1",
"leadingDigitsPattern": ["53"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{4})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["33|5[56]|81"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[2-9]"],
"nationalPrefixOptionalWhenFormatting": false
}
],
"intlNumberFormat": [
{
"pattern": "(\\d{2})(\\d{4})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["33|5[56]|81"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[2-9]"],
"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]
}
};
}