DiscoveryOccurrence.fromJson constructor
DiscoveryOccurrence.fromJson(
- Map json_
Implementation
DiscoveryOccurrence.fromJson(core.Map json_)
: this(
analysisCompleted: json_.containsKey('analysisCompleted')
? AnalysisCompleted.fromJson(json_['analysisCompleted']
as core.Map<core.String, core.dynamic>)
: null,
analysisError: json_.containsKey('analysisError')
? (json_['analysisError'] as core.List)
.map((value) => Status.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
analysisStatus: json_.containsKey('analysisStatus')
? json_['analysisStatus'] as core.String
: null,
analysisStatusError: json_.containsKey('analysisStatusError')
? Status.fromJson(json_['analysisStatusError']
as core.Map<core.String, core.dynamic>)
: null,
archiveTime: json_.containsKey('archiveTime')
? json_['archiveTime'] as core.String
: null,
continuousAnalysis: json_.containsKey('continuousAnalysis')
? json_['continuousAnalysis'] as core.String
: null,
cpe: json_.containsKey('cpe') ? json_['cpe'] as core.String : null,
lastScanTime: json_.containsKey('lastScanTime')
? json_['lastScanTime'] as core.String
: null,
sbomStatus: json_.containsKey('sbomStatus')
? SBOMStatus.fromJson(
json_['sbomStatus'] as core.Map<core.String, core.dynamic>)
: null,
);