getSR function
Phone Number JSON data for SR
Implementation
Map<String, Object?> getSR() {
return {
"generalDesc": {
"nationalNumberPattern": "(?:[2-5]|68|[78]\\d)\\d{5}",
"possibleLength": [6, 7]
},
"fixedLine": {
"nationalNumberPattern": "(?:2[1-3]|3[0-7]|(?:4|68)\\d|5[2-58])\\d{4}",
"exampleNumber": "211234",
"possibleLength": [6, 7],
"possibleLengthLocalOnly": [-1]
},
"mobile": {
"nationalNumberPattern": "(?:7[124-7]|8[124-9])\\d{5}",
"exampleNumber": "7412345",
"possibleLength": [7],
"possibleLengthLocalOnly": [-1]
},
"tollFree": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"premiumRate": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"sharedCost": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"personalNumber": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"voip": {
"nationalNumberPattern": "56\\d{4}",
"exampleNumber": "561234",
"possibleLength": [6],
"possibleLengthLocalOnly": [-1]
},
"id": "SR",
"countryCode": 597,
"internationalPrefix": "00",
"sameMobileAndFixedLinePattern": false,
"numberFormat": [
{
"pattern": "(\\d{2})(\\d{2})(\\d{2})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["56"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})",
"format": "\$1-\$2",
"leadingDigitsPattern": ["[2-5]"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{4})",
"format": "\$1-\$2",
"leadingDigitsPattern": ["[6-8]"],
"nationalPrefixOptionalWhenFormatting": false
}
],
"intlNumberFormat": [
{
"pattern": "(\\d{2})(\\d{2})(\\d{2})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["56"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})",
"format": "\$1-\$2",
"leadingDigitsPattern": ["[2-5]"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{4})",
"format": "\$1-\$2",
"leadingDigitsPattern": ["[6-8]"],
"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": false,
"smsServices": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
}
};
}