ActiveContext class

A context is a variable that contains information about the current state of the conversation between a user and Amazon Lex. Context can be set automatically by Amazon Lex when an intent is fulfilled, or it can be set at runtime using the PutContent, PutText, or PutSession operation.

Constructors

ActiveContext({required String name, required Map<String, String> parameters, required ActiveContextTimeToLive timeToLive})
ActiveContext.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the context.
final
parameters Map<String, String>
State variables for the current context. You can use these values as default values for slots in subsequent events.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeToLive ActiveContextTimeToLive
The length of time or number of turns that a context remains active.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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