create method
Create Team
Create a new team. The user who creates the team will automatically be assigned as the owner of the team. The team owner can invite new members, who will be able add new owners and update or delete the team from your project.
Implementation
Future<req.Response> create({required String name, List? roles}) {
final String path = '/teams';
final Map<String, dynamic> params = {
'name': name,
'roles': roles,
};
final Map<String, String> headers = {
'content-type': 'application/json',
};
return client.call(HttpMethod.post,
path: path, params: params, headers: headers);
}