Pusher.fromJson constructor

Pusher.fromJson(
  1. Map<String, Object?> json
)

Implementation

Pusher.fromJson(Map<String, Object?> json)
    : appId = json['app_id'] as String,
      pushkey = json['pushkey'] as String,
      appDisplayName = json['app_display_name'] as String,
      data = PusherData.fromJson(json['data'] as Map<String, Object?>),
      deviceDisplayName = json['device_display_name'] as String,
      kind = json['kind'] as String,
      lang = json['lang'] as String,
      profileTag =
          ((v) => v != null ? v as String : null)(json['profile_tag']);