NotificationModel.fromMap constructor

NotificationModel.fromMap(
  1. Map<String, dynamic> map
)

Makes NotificationModel from database data

Implementation

NotificationModel.fromMap(Map<String, dynamic> map) {
  this.id = map['_id'];
  print(map['note']);
  this.note = map['note'];
  this.date1 = map['date1'];
}