DeviceNotificationToken.fromJson constructor

DeviceNotificationToken.fromJson(
  1. Map<String, dynamic> json
)

Constructs an instance of DeviceNotificationToken from a JSON map.

Parameters:

  • json: The JSON map containing the token data.

Implementation

DeviceNotificationToken.fromJson(Map<String, dynamic> json)
    : osVersion = json["osVersion"],
      deviceId = json["deviceId"],
      deviceModel = json["deviceModel"],
      token = json["token"],
      appCode = json["appCode"],
      subSystemId = int.tryParse(json["subSystemId"]);