PerformanceInsights.fromJson constructor

PerformanceInsights.fromJson(
  1. Map json_
)

Implementation

PerformanceInsights.fromJson(core.Map json_)
  : this(
      avgPreviousExecutionMs: json_['avgPreviousExecutionMs'] as core.String?,
      stagePerformanceChangeInsights:
          (json_['stagePerformanceChangeInsights'] as core.List?)
              ?.map(
                (value) => StagePerformanceChangeInsight.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      stagePerformanceStandaloneInsights:
          (json_['stagePerformanceStandaloneInsights'] as core.List?)
              ?.map(
                (value) => StagePerformanceStandaloneInsight.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
    );