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.
1
import
'../../domain/entities/notification_entity.dart';
2
3
class
NotificationModel
extends
NotificationEntity
{
4
5
NotificationModel
({
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::createDate
final String createDate
Definition
notification_entity.dart:4
NotificationEntity::NotificationEntity
NotificationEntity({ required this.id, required this.name, required this.createDate, })
NotificationEntity::name
final String name
Definition
notification_entity.dart:3
NotificationEntity::id
final int id
Definition
notification_entity.dart:2
NotificationEntity::NotificationModel
NotificationModel({ super.id, super.name, super.createDate, })
NotificationEntity::toJson
Map< String, dynamic > toJson()
Definition
notification_model.dart:19
lib
features
notifications
data
models
notification_model.dart
Generated by
1.16.1