QueryParameters constructor

QueryParameters({
  1. String? timeZone,
  2. LatLng? geoLocation,
  3. Iterable<Context>? contexts,
  4. bool? resetContexts,
  5. Iterable<SessionEntityType>? sessionEntityTypes,
  6. Struct? payload,
  7. SentimentAnalysisRequestConfig? sentimentAnalysisRequestConfig,
  8. Iterable<String>? knowledgeBaseNames,
  9. Iterable<SubAgent>? subAgents,
  10. Map<String, String>? webhookHeaders,
})

Implementation

factory QueryParameters({
  $core.String? timeZone,
  $22.LatLng? geoLocation,
  $core.Iterable<$5.Context>? contexts,
  $core.bool? resetContexts,
  $core.Iterable<$8.SessionEntityType>? sessionEntityTypes,
  $19.Struct? payload,
  SentimentAnalysisRequestConfig? sentimentAnalysisRequestConfig,
  $core.Iterable<$core.String>? knowledgeBaseNames,
  $core.Iterable<$3.SubAgent>? subAgents,
  $core.Map<$core.String, $core.String>? webhookHeaders,
}) {
  final _result = create();
  if (timeZone != null) {
    _result.timeZone = timeZone;
  }
  if (geoLocation != null) {
    _result.geoLocation = geoLocation;
  }
  if (contexts != null) {
    _result.contexts.addAll(contexts);
  }
  if (resetContexts != null) {
    _result.resetContexts = resetContexts;
  }
  if (sessionEntityTypes != null) {
    _result.sessionEntityTypes.addAll(sessionEntityTypes);
  }
  if (payload != null) {
    _result.payload = payload;
  }
  if (sentimentAnalysisRequestConfig != null) {
    _result.sentimentAnalysisRequestConfig = sentimentAnalysisRequestConfig;
  }
  if (knowledgeBaseNames != null) {
    _result.knowledgeBaseNames.addAll(knowledgeBaseNames);
  }
  if (subAgents != null) {
    _result.subAgents.addAll(subAgents);
  }
  if (webhookHeaders != null) {
    _result.webhookHeaders.addAll(webhookHeaders);
  }
  return _result;
}