update method
Update Team
Update a team using its ID. Only members with the owner role can update the team.
Implementation
Future<models.Team> update(
{required String teamId, required String name}) async {
final String path = '/teams/{teamId}'.replaceAll('{teamId}', teamId);
final Map<String, dynamic> params = {
'name': name,
};
final Map<String, String> headers = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.put,
path: path, params: params, headers: headers);
return models.Team.fromMap(res.data);
}