fromJson static method
Implementation
static Notification? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return Notification(
id: (json['id'] as int?) ?? 0,
date: (json['date'] as int?) ?? 0,
isSilent: (json['is_silent'] as bool?) ?? false,
type: NotificationType.fromJson(tdMapFromJson(json['type'])),
);
}