Intent_Message constructor

Implementation

factory Intent_Message({
  Intent_Message_Text? text,
  Intent_Message_Image? image,
  Intent_Message_QuickReplies? quickReplies,
  Intent_Message_Card? card,
  $19.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_TelephonyPlayAudio? telephonyPlayAudio,
  Intent_Message_TelephonySynthesizeSpeech? telephonySynthesizeSpeech,
  Intent_Message_TelephonyTransferCall? telephonyTransferCall,
  Intent_Message_RbmText? rbmText,
  Intent_Message_RbmStandaloneCard? rbmStandaloneRichCard,
  Intent_Message_RbmCarouselCard? rbmCarouselRichCard,
  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 (telephonyPlayAudio != null) {
    _result.telephonyPlayAudio = telephonyPlayAudio;
  }
  if (telephonySynthesizeSpeech != null) {
    _result.telephonySynthesizeSpeech = telephonySynthesizeSpeech;
  }
  if (telephonyTransferCall != null) {
    _result.telephonyTransferCall = telephonyTransferCall;
  }
  if (rbmText != null) {
    _result.rbmText = rbmText;
  }
  if (rbmStandaloneRichCard != null) {
    _result.rbmStandaloneRichCard = rbmStandaloneRichCard;
  }
  if (rbmCarouselRichCard != null) {
    _result.rbmCarouselRichCard = rbmCarouselRichCard;
  }
  if (browseCarouselCard != null) {
    _result.browseCarouselCard = browseCarouselCard;
  }
  if (tableCard != null) {
    _result.tableCard = tableCard;
  }
  if (mediaContent != null) {
    _result.mediaContent = mediaContent;
  }
  return _result;
}