Edge.fromJson constructor
Implementation
factory Edge.fromJson(Map<String, dynamic> json) {
return Edge(
aliases: (json['Aliases'] as List?)
?.whereNotNull()
.map((e) => Alias.fromJson(e as Map<String, dynamic>))
.toList(),
endTime: timeStampFromJson(json['EndTime']),
referenceId: json['ReferenceId'] as int?,
responseTimeHistogram: (json['ResponseTimeHistogram'] as List?)
?.whereNotNull()
.map((e) => HistogramEntry.fromJson(e as Map<String, dynamic>))
.toList(),
startTime: timeStampFromJson(json['StartTime']),
summaryStatistics: json['SummaryStatistics'] != null
? EdgeStatistics.fromJson(
json['SummaryStatistics'] as Map<String, dynamic>)
: null,
);
}