modifyCalendarItem method

Future<CalendarItem> modifyCalendarItem(
  1. String sdkId,
  2. CalendarItem entity
)

Implementation

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