Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
notitfication_model.dart
Go to the documentation of this file.
1import '../../domain/entities/notification_entity.dart';
2
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}
const NotificationModel({ required super.createDate, required super.id, required super.name, })
Map< String, dynamic > toJson()
class CurrencyEntity id
final String name