Message class
A rich response message.
- Annotations
-
- @JsonSerializable()
Constructors
-
Message({DialogPlatform platform = DialogPlatform.PLATFORM_UNSPECIFIED, DialogText? text, DialogImage? image, QuickReplies? quickReplies, DialogCard? card, Map<
String, dynamic> ? payload, List<SimpleResponse> ? simpleResponses, BasicCard? basicCard, List<Suggestion> ? suggestions, LinkOutSuggestion? linkOutSuggestion, ListSelect? listSelect, CarouselSelect? carouselSelect, Map<String, dynamic> ? browseCarouselCard, Map<String, dynamic> ? tableCard, Map<String, dynamic> ? mediaContent}) - A rich response message.
-
Message.fromJson(Map<
String, dynamic> json) -
factory
Properties
- basicCard → BasicCard?
-
The basic card response for Actions on Google.
final
-
browseCarouselCard
→ Map<
String, dynamic> ? -
Browse carousel card for Actions on Google.
final
- card → DialogCard?
-
The card response.
final
- carouselSelect → CarouselSelect?
-
The carousel card response for Actions on Google.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → DialogImage?
-
The image response.
final
- linkOutSuggestion → LinkOutSuggestion?
-
The link out suggestion chip for Actions on Google.
final
- listSelect → ListSelect?
-
The list card response for Actions on Google.
final
-
mediaContent
→ Map<
String, dynamic> ? -
The media content card for Actions on Google.
final
-
payload
→ Map<
String, dynamic> ? -
A custom platform-specific response.
final
- platform → DialogPlatform
-
The platform that this message is intended for.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- quickReplies → QuickReplies?
-
The quick replies response.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
simpleResponses
→ List<
SimpleResponse> ? -
The voice and text-only responses for Actions on Google.
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited -
suggestions
→ List<
Suggestion> ? -
The suggestion chips for Actions on Google.
final
-
tableCard
→ Map<
String, dynamic> ? -
Table card for Actions on Google.
final
- text → DialogText?
-
The text response.
final
- type → MessageType
-
The type of the message received
no setter
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