EventInput class

Events allow for matching intents by event name instead of the natural language input. For instance, input <event: { name: "welcome_event", parameters: { name: "Sam" } }> can trigger a personalized welcome response. The parameter name may be used by the agent in the response: "Hello #welcome_event.name! What can I do for you today?".

Constructors

EventInput({@required String name, @required String languageCode, Map<String, dynamic> parameters})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
languageCode String
The language of this query. See (Language Support)https://cloud.google.com/dialogflow-enterprise/docs/reference/language for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language
final
name String
The unique identifier of the event.
final
parameters Map<String, dynamic>
The collection of parameters associated with the event.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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) EventInput