getHealthElements method

Future<List<EncryptedHealthElement>> getHealthElements(
  1. String sdkId,
  2. List<String> entityIds
)

Implementation

Future<List<EncryptedHealthElement>> getHealthElements(String sdkId, List<String> entityIds) async {
	final res = await _methodChannel.invokeMethod<String>(
		'HealthElementApi.encrypted.getHealthElements',
		{
			"sdkId": sdkId,
			"entityIds": jsonEncode(entityIds.map((x0) => x0).toList()),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method getHealthElements");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => EncryptedHealthElement.fromJSON(x1) ).toList();
}