sendTestData method
Send webhook test data
Parameters:
Implementation
Future<WebhookTestResult?> sendTestData(String webhookId,) async {
final response = await sendTestDataWithHttpInfo(webhookId,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'WebhookTestResult',) as WebhookTestResult;
}
return null;
}