NotificationModel.fromJson constructor

NotificationModel.fromJson(
  1. Map<String, dynamic>? rawJson
)

Implementation

factory NotificationModel.fromJson(Map<String, dynamic>? rawJson) {
  return NotificationModel(
    Title: rawJson?["title"] ?? "",
    Message: rawJson?["message"] ?? "",
    CreatedDate: rawJson?["created_date"] ?? "",
    isRead: rawJson?["is_read"] ?? false,
  );
}