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