parseMessage
Parse the message data received from the push service. It should extract relevant information such as notification type, message content, and any additional parameters. It should return a map of parsed data that maps to the expected structure for the PushNotification. Any required fields should be included in the map. Additional fields can also be included for further processing.
Return
A map of parsed data.
Parameters
The message data to parse. Usually a map containing the raw data from the push service. The structure of this map depends on the push service and the platform. In Firebase, it is obtained from the RemoteMessage object.
Parse the message received as a string. It should extract relevant information from the string message (typically a JWT or JSON string) and return a map of parsed data that maps to the expected structure for the PushNotification. Any required fields should be included in the map.
Return
A map of parsed data.
Parameters
The message data as a string to parse.