class NotificationModel { String? subject; String? id; String? type; String? message; NotificationModel({this.subject, this.id, this.type, this.message}); NotificationModel.fromJson(Map json) { subject = json['subject']; id = json['id']; type = json['type']; message = json['message']; } Map toJson() { final Map data = {}; data['subject'] = subject; data['id'] = id; data['type'] = type; data['message'] = message; return data; } }