updateComponent method
Updates a component. Any fields included in the request are overwritten.
If leadAccountId is an empty string ("") the component lead is removed.
This operation can be accessed anonymously.
Permissions required: Administer projects project permission for the project containing the component or Administer Jira global permission.
Implementation
Future<ProjectComponent> updateComponent(
    {required String id, required ProjectComponent body}) async {
  return ProjectComponent.fromJson(await _client.send(
    'put',
    'rest/api/3/component/{id}',
    pathParameters: {
      'id': id,
    },
    body: body.toJson(),
  ));
}