list method
List Teams
Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.
Implementation
Future<models.TeamList> list({List<String>? queries, String? search}) async {
const String path = '/teams';
final Map<String, dynamic> params = {
'queries': queries,
'search': search,
};
final Map<String, String> headers = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.get,
path: path, params: params, headers: headers);
return models.TeamList.fromMap(res.data);
}