shareWithMany method

Future<DecryptedCalendarItem> shareWithMany(
  1. String sdkId,
  2. DecryptedCalendarItem calendarItem,
  3. Map<String, CalendarItemShareOptions> delegates
)

Implementation

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