modifyHealthElements method
Future<List<DecryptedHealthElement> >
modifyHealthElements(
- String sdkId,
- List<
DecryptedHealthElement> entities
Implementation
Future<List<DecryptedHealthElement>> modifyHealthElements(String sdkId, List<DecryptedHealthElement> entities) async {
final res = await _methodChannel.invokeMethod<String>(
'HealthElementApi.modifyHealthElements',
{
"sdkId": sdkId,
"entities": jsonEncode(entities.map((x0) => DecryptedHealthElement.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) => DecryptedHealthElement.fromJSON(x1) ).toList();
}