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