ShardSummary.fromJson constructor

ShardSummary.fromJson(
  1. Map _json
)

Implementation

ShardSummary.fromJson(core.Map _json)
    : this(
        runs: _json.containsKey('runs')
            ? (_json['runs'] as core.List)
                .map<StepSummary>((value) => StepSummary.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        shardResult: _json.containsKey('shardResult')
            ? MergedResult.fromJson(
                _json['shardResult'] as core.Map<core.String, core.dynamic>)
            : null,
      );