list method
Retrieves the list of notes of an issue.
See https://docs.gitlab.com/ee/api/notes.html#list-project-issue-notes
Implementation
Future<List<Note>> list({
NoteOrderBy? orderBy,
NoteSort? sort,
int? page,
int? perPage,
}) async {
final queryParameters = <String, dynamic>{};
if (orderBy != null) queryParameters['order_by'] = _enumToString(orderBy);
if (sort != null) queryParameters['sort'] = _enumToString(sort);
final uri = _project.buildUri(
['issues', _iid, 'notes'],
queryParameters: queryParameters,
page: page,
perPage: perPage,
);
final jsonList = _responseToList(await _gitLab.request(uri));
return Note.fromJsonList(jsonList);
}