searchGroups method

Future<GroupArrayWithLinks> searchGroups({
  1. required String query,
  2. int? start,
  3. int? limit,
  4. bool? shouldReturnTotalSize,
})

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',
    },
  ));
}