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.
cloudsolutions-atoms/lib/models/app_notification.dart

27 lines
667 B
Dart

3 years ago
import 'package:test_sa/views/pages/user/requests/future_request_service_details.dart';
class AppNotification {
3 years ago
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) {
3 years ago
return AppNotification(
requestId: parsedJson["nid"],
title: parsedJson["call_client"] ?? parsedJson["title"],
description: parsedJson["task_description"],
date: parsedJson["creation_date"],
path: FutureRequestServiceDetails.id);
3 years ago
}
}