PushNotification class

PushNotification is a model class which represents a message that was received from an external source.

Constructors

PushNotification(String? mechanismUID, String? messageId, String? challenge, String? amlbCookie, String? customPayload, String? message, String? contextInfo, String? numbersChallenge, int? timeAdded, int? timeExpired, int? ttl, bool? approved, bool? pending, PushType? pushType)
Creates the PushNotification object with given data.
PushNotification.fromJson(Map<String, dynamic>? json)
Deserializes the specified JSON into an object of the PushNotification object.
factory

Properties

amlbCookie String?
getter/setter pair
approved bool?
getter/setter pair
challenge String?
getter/setter pair
contextInfo String?
getter/setter pair
customPayload String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
Gets the Unique identifier for PushNotification object associated with the mechanism
no setter
mechanismUID String?
getter/setter pair
message String?
getter/setter pair
messageId String?
getter/setter pair
numbersChallenge String?
getter/setter pair
pending bool?
getter/setter pair
pushType PushType?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeAdded int?
getter/setter pair
timeExpired int?
getter/setter pair
ttl int?
getter/setter pair

Methods

getContextInfo() Map<String, dynamic>?
Gets the contextual information associated with the notification. If no context information is available, return an empty Map.
getMechanism() PushMechanism?
Gets the mechanism object associated with the notification.
getNumbersChallenge() List<String>?
Gets the challenge numbers associated with the notification. If no challenge numbers are available, return an empty list.
isExpired() bool
Determine if the notification has expired.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMechanism(PushMechanism? mechanism) → void
Sets the mechanism object associated with the notification.
toJson() Map<String, dynamic>
Creates a JSON string representation of PushNotification object.
toString() String
Creates a String representation of PushNotification object.
override

Operators

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