toJson method
Converts the PushNotificationOpened state to a JSON map.
Returns:
- A Map<String, dynamic> representing the state in JSON format.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"title": title,
"body": body,
"payload": payload.toJson(),
"linkMobile": linkMobile,
};
}