StageSummary.fromJson constructor

StageSummary.fromJson(
  1. Map _json
)

Implementation

StageSummary.fromJson(core.Map _json)
    : this(
        endTime: _json.containsKey('endTime')
            ? _json['endTime'] as core.String
            : null,
        metrics: _json.containsKey('metrics')
            ? (_json['metrics'] as core.List)
                .map<MetricUpdate>((value) => MetricUpdate.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        progress: _json.containsKey('progress')
            ? ProgressTimeseries.fromJson(
                _json['progress'] as core.Map<core.String, core.dynamic>)
            : null,
        stageId: _json.containsKey('stageId')
            ? _json['stageId'] as core.String
            : null,
        startTime: _json.containsKey('startTime')
            ? _json['startTime'] as core.String
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
      );