shareWithMany method

Future<EncryptedTimeTable> shareWithMany(
  1. String sdkId,
  2. EncryptedTimeTable timeTable,
  3. Map<String, TimeTableShareOptions> delegates
)

Implementation

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