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