deleteProjectsBySlugStar method
Removes the caller's own bookmark from a project, and answers whether it is starred afterwards.
Removes the caller's own bookmark from a project, and answers whether it is starred afterwards. It removes only YOUR star — the same one star wrote — so a project other people have starred stays on their lists. Unstarring one you had not starred is not an error; it leaves it unstarred.
Parameters:
- String slug (required): Slug is the project to act on, from the path. It is unique within the caller's org and nowhere else, so another tenant's slug is a 404.
Implementation
Future<ProjectsStar?> deleteProjectsBySlugStar(String slug,) async {
final response = await deleteProjectsBySlugStarWithHttpInfo(slug,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ProjectsStar',) as ProjectsStar;
}
return null;
}