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