Files
Fondex-Driver/lib/models/notification_model.dart
2025-12-08 23:25:00 +05:00

25 lines
562 B
Dart

class NotificationModel {
String? subject;
String? id;
String? type;
String? message;
NotificationModel({this.subject, this.id, this.type, this.message});
NotificationModel.fromJson(Map<String, dynamic> json) {
subject = json['subject'];
id = json['id'];
type = json['type'];
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['subject'] = subject;
data['id'] = id;
data['type'] = type;
data['message'] = message;
return data;
}
}