import 'package:test_sa/views/pages/user/requests/future_request_service_details.dart';

class AppNotification{
  String requestId;
  String title;
  String description;
  String date;
  String path;

  AppNotification({
    this.requestId,
    this.title,
    this.description,
    this.date,
    this.path,
  });

  factory AppNotification.fromJson(Map<String,dynamic> parsedJson){
    return AppNotification(
      requestId: parsedJson["nid"],
      title: parsedJson["call_client"] ?? parsedJson["title"],
      description: parsedJson["task_description"],
      date: parsedJson["creation_date"],
      path: FutureRequestServiceDetails.id
    );
  }
}