shareWith method
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);
}