list method
List Teams
Get a list of all the current user teams. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's teams. Learn more about different API modes.
Implementation
Future<req.Response> list(
{String? search, int? limit, int? offset, OrderType? orderType}) {
final String path = '/teams';
final Map<String, dynamic> params = {
'search': search,
'limit': limit,
'offset': offset,
'orderType': orderType?.name(),
};
final Map<String, String> headers = {
'content-type': 'application/json',
};
return client.call(HttpMethod.get,
path: path, params: params, headers: headers);
}