insertNotification method
Implementation
Future<int> insertNotification(Notif obj) async {
Database db = await (this.database as FutureOr<Database>);
Map<String, dynamic> map = obj.toJson();
map["isRead"] = obj.isRead ? 1 : 0;
return await db.insert('notification', map,
conflictAlgorithm: ConflictAlgorithm.replace,
);
}