QueryParameters class

Represents the parameters of the conversational query.

Constructors

QueryParameters({String timeZone, LatLng geoLocation, List<Context> contexts, bool resetContexts, List<SessionEntityType> sessionEntityTypes, Map<String, dynamic> payload, List<String> knowledgeBaseNames})

Properties

contexts List<Context>
The collection of contexts to be activated before this query is executed.
final
geoLocation LatLng
The geo location of this conversational query.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
knowledgeBaseNames List<String>
Knowledge based list - used for accessing responses based on knowledge base functionality
final
payload Map<String, dynamic>
This field can be used to pass custom data into the webhook associated with the agent. Arbitrary JSON objects are supported.
final
resetContexts bool
Specifies whether to delete all contexts in the current session before the new ones are activated.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sessionEntityTypes List<SessionEntityType>
Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session of this query.
final
timeZone String
The time zone of this conversational query from the time zone database, e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fromJson(Map<String, dynamic> json) QueryParameters