OutputContext class

The specification of an output context that is set when an intent is fulfilled.

Constructors

OutputContext({required String name, required int timeToLiveInSeconds, required int turnsToLive})
OutputContext.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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeToLiveInSeconds int
The number of seconds that the context should be active after it is first sent in a PostContent or PostText response. You can set the value between 5 and 86,400 seconds (24 hours).
final
turnsToLive int
The number of conversation turns that the context should be active. A conversation turn is one PostContent or PostText request and the corresponding response from Amazon Lex.
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