getStatuses method

Future<List<StatusDetails>> getStatuses()

Returns a list of all statuses associated with active workflows.

This operation can be accessed anonymously.

Permissions required: None.

Implementation

Future<List<StatusDetails>> getStatuses() async {
  return (await _client.send(
    'get',
    'rest/api/3/status',
  ) as List<Object?>)
      .map((i) =>
          StatusDetails.fromJson(i as Map<String, Object?>? ?? const {}))
      .toList();
}