processEvent method

Future<void> processEvent(
  1. String keygenSignature, {
  2. WebhookEvent? webhookEvent,
})

Process an event

Parameters:

  • String keygenSignature (required): The signature of the event payload.

  • WebhookEvent webhookEvent:

Implementation

Future<void> processEvent(String keygenSignature, { WebhookEvent? webhookEvent, }) async {
  final response = await processEventWithHttpInfo(keygenSignature,  webhookEvent: webhookEvent, );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}