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.
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|