TestMatrix.fromJson constructor
TestMatrix.fromJson(
- Map _json
Implementation
TestMatrix.fromJson(core.Map _json)
: this(
clientInfo: _json.containsKey('clientInfo')
? ClientInfo.fromJson(
_json['clientInfo'] as core.Map<core.String, core.dynamic>)
: null,
environmentMatrix: _json.containsKey('environmentMatrix')
? EnvironmentMatrix.fromJson(_json['environmentMatrix']
as core.Map<core.String, core.dynamic>)
: null,
failFast: _json.containsKey('failFast')
? _json['failFast'] as core.bool
: null,
flakyTestAttempts: _json.containsKey('flakyTestAttempts')
? _json['flakyTestAttempts'] as core.int
: null,
invalidMatrixDetails: _json.containsKey('invalidMatrixDetails')
? _json['invalidMatrixDetails'] as core.String
: null,
outcomeSummary: _json.containsKey('outcomeSummary')
? _json['outcomeSummary'] as core.String
: null,
projectId: _json.containsKey('projectId')
? _json['projectId'] as core.String
: null,
resultStorage: _json.containsKey('resultStorage')
? ResultStorage.fromJson(
_json['resultStorage'] as core.Map<core.String, core.dynamic>)
: null,
state:
_json.containsKey('state') ? _json['state'] as core.String : null,
testExecutions: _json.containsKey('testExecutions')
? (_json['testExecutions'] as core.List)
.map((value) => TestExecution.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
testMatrixId: _json.containsKey('testMatrixId')
? _json['testMatrixId'] as core.String
: 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,
);