TestCase.fromJson constructor
TestCase.fromJson(
- Map _json
Implementation
TestCase.fromJson(core.Map _json)
: this(
elapsedTime: _json.containsKey('elapsedTime')
? Duration.fromJson(
_json['elapsedTime'] as core.Map<core.String, core.dynamic>)
: null,
endTime: _json.containsKey('endTime')
? Timestamp.fromJson(
_json['endTime'] as core.Map<core.String, core.dynamic>)
: null,
skippedMessage: _json.containsKey('skippedMessage')
? _json['skippedMessage'] as core.String
: null,
stackTraces: _json.containsKey('stackTraces')
? (_json['stackTraces'] as core.List)
.map((value) => StackTrace.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
startTime: _json.containsKey('startTime')
? Timestamp.fromJson(
_json['startTime'] as core.Map<core.String, core.dynamic>)
: null,
status: _json.containsKey('status')
? _json['status'] as core.String
: null,
testCaseId: _json.containsKey('testCaseId')
? _json['testCaseId'] as core.String
: null,
testCaseReference: _json.containsKey('testCaseReference')
? TestCaseReference.fromJson(_json['testCaseReference']
as core.Map<core.String, core.dynamic>)
: null,
toolOutputs: _json.containsKey('toolOutputs')
? (_json['toolOutputs'] as core.List)
.map((value) => ToolOutputReference.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);