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