AnomalyMonitor.fromJson constructor
AnomalyMonitor.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AnomalyMonitor.fromJson(Map<String, dynamic> json) {
return AnomalyMonitor(
monitorName: json['MonitorName'] as String,
monitorType: (json['MonitorType'] as String).toMonitorType(),
creationDate: json['CreationDate'] as String?,
dimensionalValueCount: json['DimensionalValueCount'] as int?,
lastEvaluatedDate: json['LastEvaluatedDate'] as String?,
lastUpdatedDate: json['LastUpdatedDate'] as String?,
monitorArn: json['MonitorArn'] as String?,
monitorDimension:
(json['MonitorDimension'] as String?)?.toMonitorDimension(),
monitorSpecification: json['MonitorSpecification'] != null
? Expression.fromJson(
json['MonitorSpecification'] as Map<String, dynamic>)
: null,
);
}