Occurrence.fromJson constructor
Occurrence.fromJson(
- Map _json
Implementation
Occurrence.fromJson(core.Map _json)
: this(
attestation: _json.containsKey('attestation')
? Details.fromJson(
_json['attestation'] as core.Map<core.String, core.dynamic>)
: null,
build: _json.containsKey('build')
? GrafeasV1beta1BuildDetails.fromJson(
_json['build'] as core.Map<core.String, core.dynamic>)
: null,
createTime: _json.containsKey('createTime')
? _json['createTime'] as core.String
: null,
deployment: _json.containsKey('deployment')
? GrafeasV1beta1DeploymentDetails.fromJson(
_json['deployment'] as core.Map<core.String, core.dynamic>)
: null,
derivedImage: _json.containsKey('derivedImage')
? GrafeasV1beta1ImageDetails.fromJson(
_json['derivedImage'] as core.Map<core.String, core.dynamic>)
: null,
discovered: _json.containsKey('discovered')
? GrafeasV1beta1DiscoveryDetails.fromJson(
_json['discovered'] as core.Map<core.String, core.dynamic>)
: null,
installation: _json.containsKey('installation')
? GrafeasV1beta1PackageDetails.fromJson(
_json['installation'] as core.Map<core.String, core.dynamic>)
: null,
intoto: _json.containsKey('intoto')
? GrafeasV1beta1IntotoDetails.fromJson(
_json['intoto'] as core.Map<core.String, core.dynamic>)
: null,
kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
name: _json.containsKey('name') ? _json['name'] as core.String : null,
noteName: _json.containsKey('noteName')
? _json['noteName'] as core.String
: null,
remediation: _json.containsKey('remediation')
? _json['remediation'] as core.String
: null,
resource: _json.containsKey('resource')
? Resource.fromJson(
_json['resource'] as core.Map<core.String, core.dynamic>)
: null,
sbom: _json.containsKey('sbom')
? DocumentOccurrence.fromJson(
_json['sbom'] as core.Map<core.String, core.dynamic>)
: null,
spdxFile: _json.containsKey('spdxFile')
? FileOccurrence.fromJson(
_json['spdxFile'] as core.Map<core.String, core.dynamic>)
: null,
spdxPackage: _json.containsKey('spdxPackage')
? PackageInfoOccurrence.fromJson(
_json['spdxPackage'] as core.Map<core.String, core.dynamic>)
: null,
spdxRelationship: _json.containsKey('spdxRelationship')
? RelationshipOccurrence.fromJson(_json['spdxRelationship']
as core.Map<core.String, core.dynamic>)
: null,
updateTime: _json.containsKey('updateTime')
? _json['updateTime'] as core.String
: null,
vulnerability: _json.containsKey('vulnerability')
? GrafeasV1beta1VulnerabilityDetails.fromJson(
_json['vulnerability'] as core.Map<core.String, core.dynamic>)
: null,
);