undeleteHealthElement method

Future<EncryptedHealthElement> undeleteHealthElement(
  1. String sdkId,
  2. HealthElement healthElement
)

Implementation

Future<EncryptedHealthElement> undeleteHealthElement(String sdkId, HealthElement healthElement) async {
	final res = await _methodChannel.invokeMethod<String>(
		'HealthElementApi.encrypted.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 EncryptedHealthElement.fromJSON(parsedResJson);
}