toJson method

Map toJson()

Implementation

Map toJson() {
  return {
    'id': id,
    'channel_id': channelId,
    'guild_id': guildId,
    'author': author,
    'member': member,
    'content': content,
    'timestamp': timestamp,
    'edited_timestamp': editedTimestamp,
    'tts': tts,
    'mention_everyone': mentionEveryone,
    'mentions': mentions,
    'mention_roles': mentionRoles,
    'mention_channels': mentionChannels,
    'attachments': attachments,
    'embeds': embeds,
    'reactions': reactions,
    'nonce': nonce,
    'pinned': pinned,
    'webhook_id': webhookId,
    'type': type,
    'activity': activity,
    'application': application,
    'message_reference': messageReference,
    'flags': flags,
    'stickers': stickers,
    'referenced_message': referencedMessage,
    'interaction': interaction,
  };
}