GetInsightImpactGraphResult.fromJson constructor

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

Implementation

factory GetInsightImpactGraphResult.fromJson(Map<String, dynamic> json) {
  return GetInsightImpactGraphResult(
    endTime: timeStampFromJson(json['EndTime']),
    insightId: json['InsightId'] as String?,
    nextToken: json['NextToken'] as String?,
    serviceGraphEndTime: timeStampFromJson(json['ServiceGraphEndTime']),
    serviceGraphStartTime: timeStampFromJson(json['ServiceGraphStartTime']),
    services: (json['Services'] as List?)
        ?.whereNotNull()
        .map((e) =>
            InsightImpactGraphService.fromJson(e as Map<String, dynamic>))
        .toList(),
    startTime: timeStampFromJson(json['StartTime']),
  );
}