Vulnerability.fromJson constructor

Vulnerability.fromJson(
  1. Map json_
)

Implementation

Vulnerability.fromJson(core.Map json_)
    : this(
        cve: json_.containsKey('cve')
            ? Cve.fromJson(
                json_['cve'] as core.Map<core.String, core.dynamic>)
            : null,
        fixedPackage: json_.containsKey('fixedPackage')
            ? Package.fromJson(
                json_['fixedPackage'] as core.Map<core.String, core.dynamic>)
            : null,
        offendingPackage: json_.containsKey('offendingPackage')
            ? Package.fromJson(json_['offendingPackage']
                as core.Map<core.String, core.dynamic>)
            : null,
        securityBulletin: json_.containsKey('securityBulletin')
            ? SecurityBulletin.fromJson(json_['securityBulletin']
                as core.Map<core.String, core.dynamic>)
            : null,
      );