Add a type property to the notification class.