AnomalySubscription.fromJson constructor
AnomalySubscription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AnomalySubscription.fromJson(Map<String, dynamic> json) {
return AnomalySubscription(
frequency: (json['Frequency'] as String).toAnomalySubscriptionFrequency(),
monitorArnList: (json['MonitorArnList'] as List)
.whereNotNull()
.map((e) => e as String)
.toList(),
subscribers: (json['Subscribers'] as List)
.whereNotNull()
.map((e) => Subscriber.fromJson(e as Map<String, dynamic>))
.toList(),
subscriptionName: json['SubscriptionName'] as String,
threshold: json['Threshold'] as double,
accountId: json['AccountId'] as String?,
subscriptionArn: json['SubscriptionArn'] as String?,
);
}