decrypt method

Future<DecryptedCalendarItem> decrypt(
  1. String sdkId,
  2. EncryptedCalendarItem calendarItem
)

Implementation

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