tryDecrypt method
Implementation
Future<List<HealthElement>> tryDecrypt(String sdkId, List<EncryptedHealthElement> healthElements) async {
final res = await _methodChannel.invokeMethod<String>(
'HealthElementApi.tryDecrypt',
{
"sdkId": sdkId,
"healthElements": jsonEncode(healthElements.map((x0) => EncryptedHealthElement.encode(x0)).toList()),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method tryDecrypt");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => HealthElement.fromJSON(x1) ).toList();
}