toJSON

open external fun toJSON(): PushSubscriptionJSON(source)

The toJSON() method of the PushSubscription interface returns a JSON-serializable plain object representing the PushSubscription object.

MDN Reference