tryDecrypt method

Future<CalendarItem> tryDecrypt(
  1. String sdkId,
  2. EncryptedCalendarItem calendarItem
)

Implementation

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