OSNotification class

Represents a notification received from the Notifly service.

Constructors

OSNotification.new(Map<String, dynamic> json)
Constructs a new instance of OSNotification from the given JSON representation.

Properties

androidNotificationId int?
(Only Android) The Android system notification ID of the notification.
getter/setter pair
body String?
Notification body
getter/setter pair
campaignId String?
Notifly campaign ID where the notification was sent from.
getter/setter pair
customData Map<String, dynamic>?
Customized data included in the notification.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imageUrl String?
URL to the image included in the notification.
getter/setter pair
importance OSNotificationImportance?
(Only Android) Importance of the notification.
getter/setter pair
notiflyMessageId String?
The Notifly message ID of the notification.
getter/setter pair
rawPayload Map<String, dynamic>?
Raw payload of the notification.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sentTime int?
Sent time of the notification in milliseconds since epoch
getter/setter pair
title String?
Notification title
getter/setter pair
ttl int?
TTL of the notification in seconds
getter/setter pair
url String?
URL included in the notification.
getter/setter pair

Methods

convertToJsonString(Map<String, dynamic>? object) String
inherited
jsonRepresentation() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited