The following are the constructors for PushNotification.
PushNotification() Creates a new instance of the Messaging.PushNotification class.
PushNotification(payload) Creates a new instance of the Messaging.PushNotification class using the specified payload parameters as key-value pairs. When you use this constructor, you don’t need to call setPayload to set the payload.