Notifications.fromJson constructor
Implementation
factory Notifications.fromJson(Map<String, dynamic> json) {
return Notifications(
user: User.fromJson(json['user']),
text: json['text'] ?? '',
date: json['date'] ?? '',
category: json['category'] ?? '',
categorydetail: json['categorydetail'] ?? '',
categorydetailID: json['categorydetailID'] ?? 0,
enableButtons: json['enableButtons'] ?? false,
);
}