createCalendarItem method
Implementation
Future<EncryptedCalendarItem> createCalendarItem(String sdkId, EncryptedCalendarItem entity) async {
final res = await _methodChannel.invokeMethod<String>(
'CalendarItemApi.encrypted.createCalendarItem',
{
"sdkId": sdkId,
"entity": jsonEncode(EncryptedCalendarItem.encode(entity)),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method createCalendarItem");
final parsedResJson = jsonDecode(res);
return EncryptedCalendarItem.fromJSON(parsedResJson);
}