VulnerabilityNote.fromJson constructor

VulnerabilityNote.fromJson(
  1. Map json_
)

Implementation

VulnerabilityNote.fromJson(core.Map json_)
    : this(
        cvssScore: json_.containsKey('cvssScore')
            ? (json_['cvssScore'] as core.num).toDouble()
            : null,
        cvssV2: json_.containsKey('cvssV2')
            ? CVSS.fromJson(
                json_['cvssV2'] as core.Map<core.String, core.dynamic>)
            : null,
        cvssV3: json_.containsKey('cvssV3')
            ? CVSSv3.fromJson(
                json_['cvssV3'] as core.Map<core.String, core.dynamic>)
            : null,
        cvssVersion: json_.containsKey('cvssVersion')
            ? json_['cvssVersion'] as core.String
            : null,
        details: json_.containsKey('details')
            ? (json_['details'] as core.List)
                .map((value) => Detail.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        severity: json_.containsKey('severity')
            ? json_['severity'] as core.String
            : null,
        sourceUpdateTime: json_.containsKey('sourceUpdateTime')
            ? json_['sourceUpdateTime'] as core.String
            : null,
        windowsDetails: json_.containsKey('windowsDetails')
            ? (json_['windowsDetails'] as core.List)
                .map((value) => WindowsDetail.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );