shareWithMany method

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

Implementation

Future<TimeTable> shareWithMany(String sdkId, TimeTable timeTable, Map<String, TimeTableShareOptions> delegates) async {
	final res = await _methodChannel.invokeMethod<String>(
		'TimeTableApi.tryAndRecover.shareWithMany',
		{
			"sdkId": sdkId,
			"timeTable": jsonEncode(TimeTable.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 TimeTable.fromJSON(parsedResJson);
}