getSenderAddress static method
Implementation
static Future<List<SenderAddress>> getSenderAddress(
{required String publicKey}) async {
try {
var url = Uri.parse('$baseUrl/mobile/sms-address-list');
var response = await http.post(url,
headers: <String, String>{
'Content-Type': 'application/json; charset=UTF-8',
},
body: jsonEncode(<String, String>{
'publicKey': publicKey,
}));
return senderAddressFromJson(response.body.toString());
} on FormatException catch (_) {
rethrow;
}
}