Occurrence.fromJson constructor

Occurrence.fromJson(
  1. Map json_
)

Implementation

Occurrence.fromJson(core.Map json_)
    : this(
        attestation: json_.containsKey('attestation')
            ? AttestationOccurrence.fromJson(
                json_['attestation'] as core.Map<core.String, core.dynamic>)
            : null,
        build: json_.containsKey('build')
            ? BuildOccurrence.fromJson(
                json_['build'] as core.Map<core.String, core.dynamic>)
            : null,
        compliance: json_.containsKey('compliance')
            ? ComplianceOccurrence.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')
            ? DeploymentOccurrence.fromJson(
                json_['deployment'] as core.Map<core.String, core.dynamic>)
            : null,
        discovery: json_.containsKey('discovery')
            ? DiscoveryOccurrence.fromJson(
                json_['discovery'] as core.Map<core.String, core.dynamic>)
            : null,
        dsseAttestation: json_.containsKey('dsseAttestation')
            ? DSSEAttestationOccurrence.fromJson(json_['dsseAttestation']
                as core.Map<core.String, core.dynamic>)
            : null,
        envelope: json_.containsKey('envelope')
            ? Envelope.fromJson(
                json_['envelope'] as core.Map<core.String, core.dynamic>)
            : null,
        image: json_.containsKey('image')
            ? ImageOccurrence.fromJson(
                json_['image'] 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,
        package: json_.containsKey('package')
            ? PackageOccurrence.fromJson(
                json_['package'] as core.Map<core.String, core.dynamic>)
            : null,
        remediation: json_.containsKey('remediation')
            ? json_['remediation'] as core.String
            : null,
        resourceUri: json_.containsKey('resourceUri')
            ? json_['resourceUri'] as core.String
            : null,
        sbomReference: json_.containsKey('sbomReference')
            ? SBOMReferenceOccurrence.fromJson(
                json_['sbomReference'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        upgrade: json_.containsKey('upgrade')
            ? UpgradeOccurrence.fromJson(
                json_['upgrade'] as core.Map<core.String, core.dynamic>)
            : null,
        vulnerability: json_.containsKey('vulnerability')
            ? VulnerabilityOccurrence.fromJson(
                json_['vulnerability'] as core.Map<core.String, core.dynamic>)
            : null,
      );