UpgradeDistribution.fromJson constructor

UpgradeDistribution.fromJson(
  1. Map _json
)

Implementation

UpgradeDistribution.fromJson(core.Map _json)
    : this(
        classification: _json.containsKey('classification')
            ? _json['classification'] as core.String
            : null,
        cpeUri: _json.containsKey('cpeUri')
            ? _json['cpeUri'] as core.String
            : null,
        cve: _json.containsKey('cve')
            ? (_json['cve'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        severity: _json.containsKey('severity')
            ? _json['severity'] as core.String
            : null,
      );