toJson method

Map<String, dynamic> toJson()

Convert the PushNotificationPayload instance to a JSON map

Implementation

Map<String, dynamic> toJson() {
  return {
    "titleMobile": titleMobile,
    "createdAt": createdAt,
    "linkMobile": linkMobile,
    "data": data,
  };
}