SimpleResponse class

The simple response message containing speech or text.

Constructors

SimpleResponse({String textToSpeech, String ssml, String displayText})

Properties

displayText String
The text to display.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
ssml String
One of textToSpeech or ssml must be provided. Structured spoken response to the user in the SSML format. Mutually exclusive with textToSpeech.
final
textToSpeech String
One of textToSpeech or ssml must be provided. The plain text of the speech output. Mutually exclusive with ssml.
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) SimpleResponse