modifyHealthElement method
Future<GroupScoped<HealthElement> >
modifyHealthElement(
- String sdkId,
- GroupScoped<
HealthElement> entity
Implementation
Future<GroupScoped<HealthElement>> modifyHealthElement(String sdkId, GroupScoped<HealthElement> entity) async {
final res = await _methodChannel.invokeMethod<String>(
'HealthElementApi.inGroup.tryAndRecover.modifyHealthElement',
{
"sdkId": sdkId,
"entity": jsonEncode(GroupScoped.encode(
entity,
(x0) {
return HealthElement.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 HealthElement.fromJSON(x1);
},
);
}