modifyAgenda method

Future<GroupScoped<Agenda>> modifyAgenda(
  1. String sdkId,
  2. GroupScoped<Agenda> entity
)

Implementation

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