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