createCalendarItem method

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

Implementation

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