ScanRun.fromJson constructor
ScanRun.fromJson(
- Map json_
Implementation
ScanRun.fromJson(core.Map json_)
: this(
endTime: json_.containsKey('endTime')
? json_['endTime'] as core.String
: null,
errorTrace: json_.containsKey('errorTrace')
? ScanRunErrorTrace.fromJson(
json_['errorTrace'] as core.Map<core.String, core.dynamic>)
: null,
executionState: json_.containsKey('executionState')
? json_['executionState'] as core.String
: null,
hasVulnerabilities: json_.containsKey('hasVulnerabilities')
? json_['hasVulnerabilities'] as core.bool
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
progressPercent: json_.containsKey('progressPercent')
? json_['progressPercent'] as core.int
: null,
resultState: json_.containsKey('resultState')
? json_['resultState'] as core.String
: null,
startTime: json_.containsKey('startTime')
? json_['startTime'] as core.String
: null,
urlsCrawledCount: json_.containsKey('urlsCrawledCount')
? json_['urlsCrawledCount'] as core.String
: null,
urlsTestedCount: json_.containsKey('urlsTestedCount')
? json_['urlsTestedCount'] as core.String
: null,
warningTraces: json_.containsKey('warningTraces')
? (json_['warningTraces'] as core.List)
.map((value) => ScanRunWarningTrace.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);