toJson method

Map<String, dynamic> toJson()

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,
  };
}