getService method
Implementation
Future<EncryptedService> getService(String sdkId, String serviceId) async {
final res = await _methodChannel.invokeMethod<String>(
'ContactBasicApi.getService',
{
"sdkId": sdkId,
"serviceId": jsonEncode(serviceId),
}
);
if (res == null) throw AssertionError("received null result from platform method getService");
final parsedResJson = jsonDecode(res);
return EncryptedService.fromJSON(parsedResJson);
}