toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (customEmojiMetadata != null)
    'customEmojiMetadata': customEmojiMetadata!,
  if (length != null) 'length': length!,
  if (richLinkMetadata != null) 'richLinkMetadata': richLinkMetadata!,
  if (slashCommand != null) 'slashCommand': slashCommand!,
  if (startIndex != null) 'startIndex': startIndex!,
  if (type != null) 'type': type!,
  if (userMention != null) 'userMention': userMention!,
};