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,
        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,
      );