Notification.fromJson constructor
Notification.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Notification.fromJson(Map<String, dynamic> json) {
return Notification(
comparisonOperator:
(json['ComparisonOperator'] as String).toComparisonOperator(),
notificationType:
(json['NotificationType'] as String).toNotificationType(),
threshold: json['Threshold'] as double,
notificationState:
(json['NotificationState'] as String?)?.toNotificationState(),
thresholdType: (json['ThresholdType'] as String?)?.toThresholdType(),
);
}