shareWith method

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

Implementation

Future<DecryptedTimeTable> shareWith(String sdkId, String delegateId, DecryptedTimeTable timeTable, TimeTableShareOptions? options) async {
	final res = await _methodChannel.invokeMethod<String>(
		'TimeTableApi.shareWith',
		{
			"sdkId": sdkId,
			"delegateId": jsonEncode(delegateId),
			"timeTable": jsonEncode(DecryptedTimeTable.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 DecryptedTimeTable.fromJSON(parsedResJson);
}