modifyHealthElement method
Implementation
Future<HealthElement> modifyHealthElement(String sdkId, HealthElement entity) async {
final res = await _methodChannel.invokeMethod<String>(
'HealthElementApi.tryAndRecover.modifyHealthElement',
{
"sdkId": sdkId,
"entity": jsonEncode(HealthElement.encode(entity)),
}
);
if (res == null) throw AssertionError("received null result from platform method modifyHealthElement");
final parsedResJson = jsonDecode(res);
return HealthElement.fromJSON(parsedResJson);
}