getWebhooks method
- String orgId
Implementation
Future<List<OrgWebhookModel>> getWebhooks(String orgId) async {
final response = await _client
.from('org_webhooks')
.select()
.eq('org_id', orgId)
.order('created_at', ascending: false);
return (response as List<dynamic>)
.map((r) => OrgWebhookModel.fromJson(r as Map<String, dynamic>))
.toList();
}