toJson method

Map<String, dynamic> toJson()

Converts the NotificationSettings instance to a JSON object.

Implementation

Map<String, dynamic> toJson() => {
      'title': title,
      'body': body,
      'stopButton': stopButton,
      'icon': icon,
    };