Intent_Message constructor
Intent_Message({
- Intent_Message_Text? text,
- Intent_Message_Image? image,
- Intent_Message_QuickReplies? quickReplies,
- Intent_Message_Card? card,
- Struct? payload,
- Intent_Message_Platform? platform,
- Intent_Message_SimpleResponses? simpleResponses,
- Intent_Message_BasicCard? basicCard,
- Intent_Message_Suggestions? suggestions,
- Intent_Message_LinkOutSuggestion? linkOutSuggestion,
- Intent_Message_ListSelect? listSelect,
- Intent_Message_CarouselSelect? carouselSelect,
- Intent_Message_BrowseCarouselCard? browseCarouselCard,
- Intent_Message_TableCard? tableCard,
- Intent_Message_MediaContent? mediaContent,
Implementation
factory Intent_Message({
Intent_Message_Text? text,
Intent_Message_Image? image,
Intent_Message_QuickReplies? quickReplies,
Intent_Message_Card? card,
$18.Struct? payload,
Intent_Message_Platform? platform,
Intent_Message_SimpleResponses? simpleResponses,
Intent_Message_BasicCard? basicCard,
Intent_Message_Suggestions? suggestions,
Intent_Message_LinkOutSuggestion? linkOutSuggestion,
Intent_Message_ListSelect? listSelect,
Intent_Message_CarouselSelect? carouselSelect,
Intent_Message_BrowseCarouselCard? browseCarouselCard,
Intent_Message_TableCard? tableCard,
Intent_Message_MediaContent? mediaContent,
}) {
final _result = create();
if (text != null) {
_result.text = text;
}
if (image != null) {
_result.image = image;
}
if (quickReplies != null) {
_result.quickReplies = quickReplies;
}
if (card != null) {
_result.card = card;
}
if (payload != null) {
_result.payload = payload;
}
if (platform != null) {
_result.platform = platform;
}
if (simpleResponses != null) {
_result.simpleResponses = simpleResponses;
}
if (basicCard != null) {
_result.basicCard = basicCard;
}
if (suggestions != null) {
_result.suggestions = suggestions;
}
if (linkOutSuggestion != null) {
_result.linkOutSuggestion = linkOutSuggestion;
}
if (listSelect != null) {
_result.listSelect = listSelect;
}
if (carouselSelect != null) {
_result.carouselSelect = carouselSelect;
}
if (browseCarouselCard != null) {
_result.browseCarouselCard = browseCarouselCard;
}
if (tableCard != null) {
_result.tableCard = tableCard;
}
if (mediaContent != null) {
_result.mediaContent = mediaContent;
}
return _result;
}