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