fromData static method

Notifications fromData({
  1. required String id,
  2. required NotificationType type,
  3. required bool isRead,
  4. required String date,
  5. required String title,
  6. required String image,
})

Implementation

static Notifications fromData({
  required String id,
  required NotificationType type,
  required bool isRead,
  required String date,
  required String title,
  required String image

}) {
  final n = Notifications()
    ..notificationId = id
    ..notificationType = type
    ..isRead = isRead
    ..notificationDate = date
  ..notificationTitle = title
  ..notificationImage = image

  ;

  return n;
}