NotificationSettings.fromJson constructor

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

Constructs an instance of NotificationSettings from a JSON object.

Implementation

factory NotificationSettings.fromJson(Map<String, dynamic> json) =>
    NotificationSettings(
      title: json['title'] as String,
      body: json['body'] as String,
      stopButton: json['stopButton'] as String?,
      icon: json['icon'] as String?,
    );