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