Notification.fromJson constructor
Implementation
factory Notification.fromJson(Map<String, dynamic> json) {
return Notification(
jobStatesToNotify: (json['JobStatesToNotify'] as List?)
?.whereNotNull()
.map((e) => (e as String).toJobState())
.toList(),
notifyAll: json['NotifyAll'] as bool?,
snsTopicARN: json['SnsTopicARN'] as String?,
);
}