TimeSeriesServiceStatistics.fromJson constructor

TimeSeriesServiceStatistics.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TimeSeriesServiceStatistics.fromJson(Map<String, dynamic> json) {
  return TimeSeriesServiceStatistics(
    edgeSummaryStatistics: json['EdgeSummaryStatistics'] != null
        ? EdgeStatistics.fromJson(
            json['EdgeSummaryStatistics'] as Map<String, dynamic>)
        : null,
    responseTimeHistogram: (json['ResponseTimeHistogram'] as List?)
        ?.whereNotNull()
        .map((e) => HistogramEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
    serviceForecastStatistics: json['ServiceForecastStatistics'] != null
        ? ForecastStatistics.fromJson(
            json['ServiceForecastStatistics'] as Map<String, dynamic>)
        : null,
    serviceSummaryStatistics: json['ServiceSummaryStatistics'] != null
        ? ServiceStatistics.fromJson(
            json['ServiceSummaryStatistics'] as Map<String, dynamic>)
        : null,
    timestamp: timeStampFromJson(json['Timestamp']),
  );
}