EnhancedMonitoringOutput.fromJson constructor
EnhancedMonitoringOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory EnhancedMonitoringOutput.fromJson(Map<String, dynamic> json) {
return EnhancedMonitoringOutput(
currentShardLevelMetrics: (json['CurrentShardLevelMetrics'] as List?)
?.whereNotNull()
.map((e) => (e as String).toMetricsName())
.toList(),
desiredShardLevelMetrics: (json['DesiredShardLevelMetrics'] as List?)
?.whereNotNull()
.map((e) => (e as String).toMetricsName())
.toList(),
streamName: json['StreamName'] as String?,
);
}