WebhookRequest constructor

WebhookRequest({
  1. String? responseId,
  2. QueryResult? queryResult,
  3. OriginalDetectIntentRequest? originalDetectIntentRequest,
  4. String? session,
})

Implementation

factory WebhookRequest({
  $core.String? responseId,
  $8.QueryResult? queryResult,
  OriginalDetectIntentRequest? originalDetectIntentRequest,
  $core.String? session,
}) {
  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;
  }
  return _result;
}