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