QueryParameters constructor
QueryParameters({
- String? timeZone,
- LatLng? geoLocation,
- Iterable<
Context> ? contexts, - bool? resetContexts,
- Iterable<
SessionEntityType> ? sessionEntityTypes, - Struct? payload,
- SentimentAnalysisRequestConfig? sentimentAnalysisRequestConfig,
- Iterable<
String> ? knowledgeBaseNames, - Iterable<
SubAgent> ? subAgents, - 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;
}