Message.fromJson constructor

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

Implementation

factory Message.fromJson(Map<String, dynamic> json) => Message(
      token: json["token"],
      topic: json["topic"],
      condition: json["condition"],
      notification: json["notification"] == null
          ? null
          : MessageNotification.fromJson(json["notification"]),
      data: json["data"],
      android:
          json["android"] == null ? null : Android.fromJson(json["android"]),
      apns: json["apns"] == null ? null : Apns.fromJson(json["apns"]),
      webpush:
          json["webpush"] == null ? null : Webpush.fromJson(json["webpush"]),
    );