DiscoveryOccurrence.fromJson constructor

DiscoveryOccurrence.fromJson(
  1. Map _json
)

Implementation

DiscoveryOccurrence.fromJson(core.Map _json)
    : this(
        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,
        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,
      );