Initial commit
This commit is contained in:
24
lib/models/notification_model.dart
Normal file
24
lib/models/notification_model.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user