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