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