toJson method
Converts the DeviceNotificationToken instance to a JSON map.
Returns:
- A JSON map containing the token data.
Implementation
Map<String, dynamic> toJson() {
return {
"osVersion": osVersion,
"deviceId": deviceId,
"deviceModel": deviceModel,
"token": token,
"appCode": appCode,
"subSystemId": subSystemId,
};
}