PushNotificationPayload class
Contains the data payload from a Firebase Cloud Messaging notification.
This class parses and stores custom data sent with push notifications, including display text, timestamps, and deep linking information.
Constructors
-
PushNotificationPayload({required String titleMobile, required String createdAt, required String linkMobile, Map<
String, dynamic> ? data}) - Creates a notification payload with the specified fields.
- PushNotificationPayload.fromJson(dynamic json)
-
Creates a PushNotificationPayload from JSON data.
factory
Properties
- createdAt → String
-
Timestamp when the notification was created on the server
final
-
data
→ Map<
String, dynamic> ? -
Raw notification data map containing all custom fields
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- linkMobile → String
-
Deep link URL for navigating to specific app screens on mobile
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- titleMobile → String
-
Mobile-specific notification title
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert the PushNotificationPayload instance to a JSON map
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited