toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (accessoryWidgets != null) 'accessoryWidgets': accessoryWidgets!,
  if (actionResponse != null) 'actionResponse': actionResponse!,
  if (annotations != null) 'annotations': annotations!,
  if (argumentText != null) 'argumentText': argumentText!,
  if (attachedGifs != null) 'attachedGifs': attachedGifs!,
  if (attachment != null) 'attachment': attachment!,
  if (cards != null) 'cards': cards!,
  if (cardsV2 != null) 'cardsV2': cardsV2!,
  if (clientAssignedMessageId != null)
    'clientAssignedMessageId': clientAssignedMessageId!,
  if (createTime != null) 'createTime': createTime!,
  if (deleteTime != null) 'deleteTime': deleteTime!,
  if (deletionMetadata != null) 'deletionMetadata': deletionMetadata!,
  if (emojiReactionSummaries != null)
    'emojiReactionSummaries': emojiReactionSummaries!,
  if (fallbackText != null) 'fallbackText': fallbackText!,
  if (formattedText != null) 'formattedText': formattedText!,
  if (lastUpdateTime != null) 'lastUpdateTime': lastUpdateTime!,
  if (matchedUrl != null) 'matchedUrl': matchedUrl!,
  if (name != null) 'name': name!,
  if (privateMessageViewer != null)
    'privateMessageViewer': privateMessageViewer!,
  if (quotedMessageMetadata != null)
    'quotedMessageMetadata': quotedMessageMetadata!,
  if (sender != null) 'sender': sender!,
  if (slashCommand != null) 'slashCommand': slashCommand!,
  if (space != null) 'space': space!,
  if (text != null) 'text': text!,
  if (thread != null) 'thread': thread!,
  if (threadReply != null) 'threadReply': threadReply!,
};