WebhookRequest constructor
WebhookRequest({
- String? responseId,
- QueryResult? queryResult,
- OriginalDetectIntentRequest? originalDetectIntentRequest,
- String? session,
- Iterable<
QueryResult> ? alternativeQueryResults,
Implementation
factory WebhookRequest({
$core.String? responseId,
$9.QueryResult? queryResult,
OriginalDetectIntentRequest? originalDetectIntentRequest,
$core.String? session,
$core.Iterable<$9.QueryResult>? alternativeQueryResults,
}) {
final _result = create();
if (responseId != null) {
_result.responseId = responseId;
}
if (queryResult != null) {
_result.queryResult = queryResult;
}
if (originalDetectIntentRequest != null) {
_result.originalDetectIntentRequest = originalDetectIntentRequest;
}
if (session != null) {
_result.session = session;
}
if (alternativeQueryResults != null) {
_result.alternativeQueryResults.addAll(alternativeQueryResults);
}
return _result;
}