NotificationEvent.fromJson constructor
Implementation
factory NotificationEvent.fromJson(Map<String, Object?> json) {
return NotificationEvent(
description: json[r'description'] as String?,
id: (json[r'id'] as num?)?.toInt(),
name: json[r'name'] as String?,
templateEvent: json[r'templateEvent'] != null
? NotificationEvent.fromJson(
json[r'templateEvent']! as Map<String, Object?>)
: null,
);
}