MergedResult.fromJson constructor

MergedResult.fromJson(
  1. Map _json
)

Implementation

MergedResult.fromJson(core.Map _json)
    : this(
        outcome: _json.containsKey('outcome')
            ? Outcome.fromJson(
                _json['outcome'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
        testSuiteOverviews: _json.containsKey('testSuiteOverviews')
            ? (_json['testSuiteOverviews'] as core.List)
                .map<TestSuiteOverview>((value) => TestSuiteOverview.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );