PackageIssue.fromJson constructor

PackageIssue.fromJson(
  1. Map _json
)

Implementation

PackageIssue.fromJson(core.Map _json)
    : this(
        affectedLocation: _json.containsKey('affectedLocation')
            ? VulnerabilityLocation.fromJson(_json['affectedLocation']
                as core.Map<core.String, core.dynamic>)
            : null,
        effectiveSeverity: _json.containsKey('effectiveSeverity')
            ? _json['effectiveSeverity'] as core.String
            : null,
        fixedLocation: _json.containsKey('fixedLocation')
            ? VulnerabilityLocation.fromJson(
                _json['fixedLocation'] as core.Map<core.String, core.dynamic>)
            : null,
        packageType: _json.containsKey('packageType')
            ? _json['packageType'] as core.String
            : null,
        severityName: _json.containsKey('severityName')
            ? _json['severityName'] as core.String
            : null,
      );