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. Map<String, String>? webhookHeaders,
})

Implementation

factory QueryParameters({
  $core.String? timeZone,
  $21.LatLng? geoLocation,
  $core.Iterable<$4.Context>? contexts,
  $core.bool? resetContexts,
  $core.Iterable<$7.SessionEntityType>? sessionEntityTypes,
  $18.Struct? payload,
  SentimentAnalysisRequestConfig? sentimentAnalysisRequestConfig,
  $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 (webhookHeaders != null) {
    _result.webhookHeaders.addAll(webhookHeaders);
  }
  return _result;
}