shareWithMany method
Implementation
Future<EncryptedHealthElement> shareWithMany(String sdkId, EncryptedHealthElement healthElement, Map<String, HealthElementShareOptions> delegates) async {
final res = await _methodChannel.invokeMethod<String>(
'HealthElementApi.encrypted.shareWithMany',
{
"sdkId": sdkId,
"healthElement": jsonEncode(EncryptedHealthElement.encode(healthElement)),
"delegates": jsonEncode(delegates.map((k0, v0) => MapEntry(k0, HealthElementShareOptions.encode(v0)))),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method shareWithMany");
final parsedResJson = jsonDecode(res);
return EncryptedHealthElement.fromJSON(parsedResJson);
}