Webpush.fromJson constructor

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

Implementation

factory Webpush.fromJson(Map<String, dynamic> json) => Webpush(
      headers: json["headers"] == null
          ? null
          : WebpushHeaders.fromJson(json["headers"]),
      notification: json["notification"] == null
          ? null
          : WebpushNotification.fromJson(json["notification"]),
      fcmOptions: json["fcm_options"] == null
          ? null
          : WebpushFcmOptions.fromJson(json["fcm_options"]),
    );