You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
651 B
Dart
28 lines
651 B
Dart
|
|
import '../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
|
|
);
|
|
}
|
|
} |