Notifications.fromJson constructor

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

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,
  );
}