Anomaly.fromJson constructor
Implementation
factory Anomaly.fromJson(Map<String, dynamic> json) {
return Anomaly(
instances: (json['instances'] as List)
.whereNotNull()
.map((e) => AnomalyInstance.fromJson(e as Map<String, dynamic>))
.toList(),
metric: Metric.fromJson(json['metric'] as Map<String, dynamic>),
reason: json['reason'] as String,
);
}