toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (basicCard != null) 'basicCard': basicCard!,
      if (browseCarouselCard != null)
        'browseCarouselCard': browseCarouselCard!,
      if (card != null) 'card': card!,
      if (carouselSelect != null) 'carouselSelect': carouselSelect!,
      if (image != null) 'image': image!,
      if (linkOutSuggestion != null) 'linkOutSuggestion': linkOutSuggestion!,
      if (listSelect != null) 'listSelect': listSelect!,
      if (mediaContent != null) 'mediaContent': mediaContent!,
      if (payload != null) 'payload': payload!,
      if (platform != null) 'platform': platform!,
      if (quickReplies != null) 'quickReplies': quickReplies!,
      if (simpleResponses != null) 'simpleResponses': simpleResponses!,
      if (suggestions != null) 'suggestions': suggestions!,
      if (tableCard != null) 'tableCard': tableCard!,
      if (text != null) 'text': text!,
    };