shareWith method

Future<TimeTable> shareWith(
  1. String sdkId,
  2. String delegateId,
  3. TimeTable timeTable,
  4. TimeTableShareOptions? options,
)

Implementation

Future<TimeTable> shareWith(String sdkId, String delegateId, TimeTable timeTable, TimeTableShareOptions? options) async {
	final res = await _methodChannel.invokeMethod<String>(
		'TimeTableApi.tryAndRecover.shareWith',
		{
			"sdkId": sdkId,
			"delegateId": jsonEncode(delegateId),
			"timeTable": jsonEncode(TimeTable.encode(timeTable)),
			"options": jsonEncode(options == null ? null : TimeTableShareOptions.encode(options!)),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method shareWith");
	final parsedResJson = jsonDecode(res);
	return TimeTable.fromJSON(parsedResJson);
}