PushNotificationDevice.fromJson constructor

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

Implementation

factory PushNotificationDevice.fromJson(Map<String, dynamic> json) =>
    PushNotificationDevice(
      appId: json['app_id'],
      data: json['data'] == null
          ? null
          : Map<String, dynamic>.from(json['data']),
      pushkey: json['pushkey'],
      pushkeyTs: json['pushkey_ts'],
      tweaks: json['tweaks'] == null ? null : Tweaks.fromJson(json['tweaks']),
    );