deleteAgenda method
Future<GroupScoped<StoredDocumentIdentifier> >
deleteAgenda(
- String sdkId,
- GroupScoped<
Agenda> agenda
Implementation
Future<GroupScoped<StoredDocumentIdentifier>> deleteAgenda(String sdkId, GroupScoped<Agenda> agenda) async {
final res = await _methodChannel.invokeMethod<String>(
'AgendaApi.inGroup.deleteAgenda',
{
"sdkId": sdkId,
"agenda": jsonEncode(GroupScoped.encode(
agenda,
(x0) {
return Agenda.encode(x0);
},
)),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method deleteAgenda");
final parsedResJson = jsonDecode(res);
return GroupScoped.fromJSON(
parsedResJson,
(x1) {
return StoredDocumentIdentifier.fromJSON(x1);
},
);
}