getWS function
Phone Number JSON data for WS
Implementation
Map<String, Object?> getWS() {
return {
"generalDesc": {
"nationalNumberPattern": "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",
"possibleLength": [5, 6, 7, 10]
},
"fixedLine": {
"nationalNumberPattern": "6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",
"exampleNumber": "22123",
"possibleLength": [5, 6],
"possibleLengthLocalOnly": [-1]
},
"mobile": {
"nationalNumberPattern": "(?:7[1-35-7]|8(?:[3-7]|9\\d{3}))\\d{5}",
"exampleNumber": "7212345",
"possibleLength": [7, 10],
"possibleLengthLocalOnly": [-1]
},
"tollFree": {
"nationalNumberPattern": "800\\d{3}",
"exampleNumber": "800123",
"possibleLength": [6],
"possibleLengthLocalOnly": [-1]
},
"premiumRate": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"sharedCost": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"personalNumber": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"voip": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"id": "WS",
"countryCode": 685,
"internationalPrefix": "0",
"sameMobileAndFixedLinePattern": false,
"numberFormat": [
{
"pattern": "(\\d{5})",
"format": "\$1",
"leadingDigitsPattern": ["[2-5]|6[1-9]"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3,7})",
"format": "\$1 \$2",
"leadingDigitsPattern": ["[68]"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{5})",
"format": "\$1 \$2",
"leadingDigitsPattern": ["7"],
"nationalPrefixOptionalWhenFormatting": false
}
],
"intlNumberFormat": [
{
"pattern": "(\\d{5})",
"format": "\$1",
"leadingDigitsPattern": ["[2-5]|6[1-9]"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3,7})",
"format": "\$1 \$2",
"leadingDigitsPattern": ["[68]"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{5})",
"format": "\$1 \$2",
"leadingDigitsPattern": ["7"],
"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]
}
};
}