Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
notification_model.dart
Go to the documentation of this file.
1import '../../domain/entities/notification_entity.dart';
2
4
6 super.id,
7 super.name,
8 super.createDate,
9 });
10
11 factory NotificationModel.fromJson(Map<String, dynamic> json) {
12 return NotificationModel(
13 id: json['id'],
14 name: json['name'],
15 createDate: json['createDate'],
16 );
17 }
18
19 Map<String, dynamic> toJson() {
20 return {
21 'id': id,
22 'name': name,
23 'createDate': createDate,
24 };
25 }
26}
NotificationEntity({ required this.id, required this.name, required this.createDate, })
NotificationModel({ super.id, super.name, super.createDate, })
Map< String, dynamic > toJson()