modifyCalendarItem method

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

Implementation

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