toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "id": id?.toJson(),
      "body": body,
      "type": type,
      "t": t,
      "notifyName": notifyName,
      "from": from,
      "to": to,
      "self": self,
      "isNewMsg": isNewMsg,
      "star": star,
      "kicNotified": kicNotified,
      "recvFresh": recvFresh,
      "isFromTemplate": isFromTemplate,
      "pollInvalidated": pollInvalidated,
      "broadcast": broadcast,
      "isForwarded": isForwarded,
      "hasReaction": hasReaction,
      "ephemeralOutOfSync": ephemeralOutOfSync,
      "productHeaderImageRejected": productHeaderImageRejected,
      "lastPlaybackProgress": lastPlaybackProgress,
      "isDynamicReplyButtonsMsg": isDynamicReplyButtonsMsg,
      "isMdHistoryMsg": isMdHistoryMsg,
      "stickerSentTs": stickerSentTs,
      "requiresDirectConnection": requiresDirectConnection,
      "pttForwardedFeaturesEnabled": pttForwardedFeaturesEnabled,
      "caption": caption,
    };