list method

List of project webhooks

Implementation

Future<List<WebhookEntity>> list() async {
  _ensureRightVersionForWebhooks();

  final response = await resolveStreamedResponse(
    createRequest('GET', buildUri('$apiUrl/webhooks/')).send(),
  );

  return (response as List).map((e) => WebhookEntity.fromJson(e)).toList();
}