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