NotificationSeen.fromMap constructor

NotificationSeen.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory NotificationSeen.fromMap(Map<String, dynamic> json) =>
    NotificationSeen(
      unseenCount: json["unseen_count"],
      notifications: json["notifications"] == null
          ? []
          : List<NotificationModel>.from(json["notifications"]!
              .map((x) => NotificationModel.fromMap(x))),
    );