tryDecrypt method
Implementation
Future<List<CalendarItem>> tryDecrypt(String sdkId, List<EncryptedCalendarItem> calendarItems) async {
final res = await _methodChannel.invokeMethod<String>(
'CalendarItemApi.tryDecrypt',
{
"sdkId": sdkId,
"calendarItems": jsonEncode(calendarItems.map((x0) => EncryptedCalendarItem.encode(x0)).toList()),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method tryDecrypt");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => CalendarItem.fromJSON(x1) ).toList();
}