VulnerabilityReportVulnerability.fromJson constructor

VulnerabilityReportVulnerability.fromJson(
  1. Map json_
)

Implementation

VulnerabilityReportVulnerability.fromJson(core.Map json_)
    : this(
        availableInventoryItemIds:
            json_.containsKey('availableInventoryItemIds')
                ? (json_['availableInventoryItemIds'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        details: json_.containsKey('details')
            ? VulnerabilityReportVulnerabilityDetails.fromJson(
                json_['details'] as core.Map<core.String, core.dynamic>)
            : null,
        installedInventoryItemIds:
            json_.containsKey('installedInventoryItemIds')
                ? (json_['installedInventoryItemIds'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        items: json_.containsKey('items')
            ? (json_['items'] as core.List)
                .map((value) => VulnerabilityReportVulnerabilityItem.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );