25 lines
562 B
Dart
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;
|
|
}
|
|
}
|