Aidra Connect
10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
notitfication_model.dart
Go to the documentation of this file.
1
import
'../../domain/entities/notification_entity.dart';
2
3
class
NotificationModel
extends
NotificationEntity
{
4
const
NotificationModel
({
5
required super.createDate,
6
required super.id,
7
required super.name,
8
});
9
10
factory
NotificationModel
.fromJson(Map<String, dynamic> json) {
11
return
NotificationModel
(
12
createDate: json[
'createDate'
] != null
13
? DateTime.parse(json[
'createDate'
] as String)
14
: null,
15
id
: json[
'id'
] as
int
?,
16
name
: json[
'name'
] as String?,
17
);
18
}
19
20
Map<String, dynamic>
toJson
() {
21
return
{
22
'createDate'
: createDate?.toIso8601String(),
23
'id'
:
id
,
24
'name'
:
name
,
25
};
26
}
27
}
NotificationEntity
Definition
notitfication_model.dart:3
NotificationEntity::NotificationModel
const NotificationModel({ required super.createDate, required super.id, required super.name, })
NotificationEntity::toJson
Map< String, dynamic > toJson()
Definition
notitfication_model.dart:20
id
class CurrencyEntity id
Definition
collection_entity.dart:522
name
final String name
Definition
collection_entity.dart:406
lib
features
notifications
data
models
notitfication_model.dart
Generated by
1.16.1