SentimentResponse class

The sentiment expressed in an utterance.

When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field structure contains the result of the analysis.

Constructors

SentimentResponse({String? sentimentLabel, String? sentimentScore})
SentimentResponse.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sentimentLabel String?
The inferred sentiment that Amazon Comprehend has the highest confidence in.
final
sentimentScore String?
The likelihood that the sentiment was correctly inferred.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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