InsightEvent.fromJson constructor
InsightEvent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory InsightEvent.fromJson(Map<String, dynamic> json) {
return InsightEvent(
clientRequestImpactStatistics:
json['ClientRequestImpactStatistics'] != null
? RequestImpactStatistics.fromJson(
json['ClientRequestImpactStatistics'] as Map<String, dynamic>)
: null,
eventTime: timeStampFromJson(json['EventTime']),
rootCauseServiceRequestImpactStatistics:
json['RootCauseServiceRequestImpactStatistics'] != null
? RequestImpactStatistics.fromJson(
json['RootCauseServiceRequestImpactStatistics']
as Map<String, dynamic>)
: null,
summary: json['Summary'] as String?,
topAnomalousServices: (json['TopAnomalousServices'] as List?)
?.whereNotNull()
.map((e) => AnomalousService.fromJson(e as Map<String, dynamic>))
.toList(),
);
}