NotificationChannel.fromJson constructor

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

Implementation

factory NotificationChannel.fromJson(Map<String, dynamic> json) =>
    NotificationChannel(
      id: json["id"],
      name: json["name"],
      description: json["description"],
      importance: (json["importance"] as String).parse,
    );