PerfMetricsSummary.fromJson constructor

PerfMetricsSummary.fromJson(
  1. Map _json
)

Implementation

PerfMetricsSummary.fromJson(core.Map _json)
    : this(
        appStartTime: _json.containsKey('appStartTime')
            ? AppStartTime.fromJson(
                _json['appStartTime'] as core.Map<core.String, core.dynamic>)
            : null,
        executionId: _json.containsKey('executionId')
            ? _json['executionId'] as core.String
            : null,
        graphicsStats: _json.containsKey('graphicsStats')
            ? GraphicsStats.fromJson(
                _json['graphicsStats'] as core.Map<core.String, core.dynamic>)
            : null,
        historyId: _json.containsKey('historyId')
            ? _json['historyId'] as core.String
            : null,
        perfEnvironment: _json.containsKey('perfEnvironment')
            ? PerfEnvironment.fromJson(_json['perfEnvironment']
                as core.Map<core.String, core.dynamic>)
            : null,
        perfMetrics: _json.containsKey('perfMetrics')
            ? (_json['perfMetrics'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        projectId: _json.containsKey('projectId')
            ? _json['projectId'] as core.String
            : null,
        stepId: _json.containsKey('stepId')
            ? _json['stepId'] as core.String
            : null,
      );