searchGroups method
Get search results of groups by partial query provided.
Implementation
Future<GroupArrayWithLinks> searchGroups(
{required String query,
int? start,
int? limit,
bool? shouldReturnTotalSize}) async {
return GroupArrayWithLinks.fromJson(await _client.send(
'get',
'wiki/rest/api/group/picker',
queryParameters: {
'query': query,
if (start != null) 'start': '$start',
if (limit != null) 'limit': '$limit',
if (shouldReturnTotalSize != null)
'shouldReturnTotalSize': '$shouldReturnTotalSize',
},
));
}