TestExecution.fromJson constructor

TestExecution.fromJson(
  1. Map _json
)

Implementation

TestExecution.fromJson(core.Map _json)
    : this(
        environment: _json.containsKey('environment')
            ? Environment.fromJson(
                _json['environment'] as core.Map<core.String, core.dynamic>)
            : null,
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        matrixId: _json.containsKey('matrixId')
            ? _json['matrixId'] as core.String
            : null,
        projectId: _json.containsKey('projectId')
            ? _json['projectId'] as core.String
            : null,
        shard: _json.containsKey('shard')
            ? Shard.fromJson(
                _json['shard'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
        testDetails: _json.containsKey('testDetails')
            ? TestDetails.fromJson(
                _json['testDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        testSpecification: _json.containsKey('testSpecification')
            ? TestSpecification.fromJson(_json['testSpecification']
                as core.Map<core.String, core.dynamic>)
            : null,
        timestamp: _json.containsKey('timestamp')
            ? _json['timestamp'] as core.String
            : null,
        toolResultsStep: _json.containsKey('toolResultsStep')
            ? ToolResultsStep.fromJson(_json['toolResultsStep']
                as core.Map<core.String, core.dynamic>)
            : null,
      );