NotificationModel.fromMap constructor
Implementation
factory NotificationModel.fromMap(Map<String, dynamic> json) =>
NotificationModel(
id: json["id"],
header: json["header"],
content: json["content"],
messageId: json["message_id"],
orderId: json["order_id"],
seen: json["seen"],
createdAt: json["created_at"] == null
? null
: DateTime.parse(json["created_at"]).toLocal(),
);