toJson method

  1. @override
Map<String, dynamic> toJson([
  1. dynamic extra
])
override

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "id": id,
    "sender_chat_id": senderChatId,
    "date": date,
    "is_being_edited": isBeingEdited,
    "is_edited": isEdited,
    "is_pinned": isPinned,
    "is_visible_only_for_self": isVisibleOnlyForSelf,
    "can_be_forwarded": canBeForwarded,
    "can_be_replied": canBeReplied,
    "can_get_viewers": canGetViewers,
    "has_expired_viewers": hasExpiredViewers,
    "interaction_info": interactionInfo?.toJson(),
    "privacy_settings": privacySettings.toJson(),
    "content": content.toJson(),
    "caption": caption.toJson(),
  };
}