VulnerabilityLocation.fromJson constructor

VulnerabilityLocation.fromJson(
  1. Map _json
)

Implementation

VulnerabilityLocation.fromJson(core.Map _json)
    : this(
        cpeUri: _json.containsKey('cpeUri')
            ? _json['cpeUri'] as core.String
            : null,
        package: _json.containsKey('package')
            ? _json['package'] as core.String
            : null,
        version: _json.containsKey('version')
            ? Version.fromJson(
                _json['version'] as core.Map<core.String, core.dynamic>)
            : null,
      );