Android.fromJson constructor

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

Implementation

factory Android.fromJson(Map<String, dynamic> json) => Android(
      priority: json["priority"],
      secondsToShow:
          double.tryParse(json["ttl"].toString().replaceAll('s', '')),
      notification: json["notification"] == null
          ? null
          : AndroidNotification.fromJson(json["notification"]),
      fcmOptions: json["fcm_options"] == null
          ? null
          : AndroidFcmOptions.fromJson(json["fcm_options"]),
    );