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,
    "deviceModel": deviceModel,
    "token": token,
  };
}