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"],
      deviceModel = json["deviceModel"],
      token = json["token"];