modifyHealthElement method

Future<DecryptedHealthElement> modifyHealthElement(
  1. String sdkId,
  2. DecryptedHealthElement entity
)

Implementation

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