Note.fromJson constructor
Note.fromJson(
- Map json_
Implementation
Note.fromJson(core.Map json_)
: this(
attestation: json_.containsKey('attestation')
? AttestationNote.fromJson(
json_['attestation'] as core.Map<core.String, core.dynamic>)
: null,
build: json_.containsKey('build')
? BuildNote.fromJson(
json_['build'] as core.Map<core.String, core.dynamic>)
: null,
compliance: json_.containsKey('compliance')
? ComplianceNote.fromJson(
json_['compliance'] as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
deployment: json_.containsKey('deployment')
? DeploymentNote.fromJson(
json_['deployment'] as core.Map<core.String, core.dynamic>)
: null,
discovery: json_.containsKey('discovery')
? DiscoveryNote.fromJson(
json_['discovery'] as core.Map<core.String, core.dynamic>)
: null,
dsseAttestation: json_.containsKey('dsseAttestation')
? DSSEAttestationNote.fromJson(json_['dsseAttestation']
as core.Map<core.String, core.dynamic>)
: null,
expirationTime: json_.containsKey('expirationTime')
? json_['expirationTime'] as core.String
: null,
image: json_.containsKey('image')
? ImageNote.fromJson(
json_['image'] as core.Map<core.String, core.dynamic>)
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
longDescription: json_.containsKey('longDescription')
? json_['longDescription'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
package: json_.containsKey('package')
? PackageNote.fromJson(
json_['package'] as core.Map<core.String, core.dynamic>)
: null,
relatedNoteNames: json_.containsKey('relatedNoteNames')
? (json_['relatedNoteNames'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
relatedUrl: json_.containsKey('relatedUrl')
? (json_['relatedUrl'] as core.List)
.map((value) => RelatedUrl.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
sbomReference: json_.containsKey('sbomReference')
? SBOMReferenceNote.fromJson(
json_['sbomReference'] as core.Map<core.String, core.dynamic>)
: null,
shortDescription: json_.containsKey('shortDescription')
? json_['shortDescription'] as core.String
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
upgrade: json_.containsKey('upgrade')
? UpgradeNote.fromJson(
json_['upgrade'] as core.Map<core.String, core.dynamic>)
: null,
vulnerability: json_.containsKey('vulnerability')
? VulnerabilityNote.fromJson(
json_['vulnerability'] as core.Map<core.String, core.dynamic>)
: null,
vulnerabilityAssessment: json_.containsKey('vulnerabilityAssessment')
? VulnerabilityAssessmentNote.fromJson(
json_['vulnerabilityAssessment']
as core.Map<core.String, core.dynamic>)
: null,
);