modifyHealthElement method

Implementation

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