toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'id': id,
'sender_chat_id': senderChatId,
'sender_id': senderId?.toJson(),
'date': date,
'is_being_sent': isBeingSent,
'is_being_edited': isBeingEdited,
'is_edited': isEdited,
'is_pinned': isPinned,
'is_visible_only_for_self': isVisibleOnlyForSelf,
'can_be_deleted': canBeDeleted,
'can_be_edited': canBeEdited,
'can_be_forwarded': canBeForwarded,
'can_be_replied': canBeReplied,
'can_toggle_is_pinned': canToggleIsPinned,
'can_get_statistics': canGetStatistics,
'can_get_interactions': canGetInteractions,
'has_expired_viewers': hasExpiredViewers,
'repost_info': repostInfo?.toJson(),
'interaction_info': interactionInfo?.toJson(),
'chosen_reaction_type': chosenReactionType?.toJson(),
'privacy_settings': privacySettings.toJson(),
'content': content.toJson(),
'areas': [for (final e in areas) e.toJson()],
'caption': caption.toJson(),
};