WindowsDetail.fromJson constructor

WindowsDetail.fromJson(
  1. Map json_
)

Implementation

WindowsDetail.fromJson(core.Map json_)
    : this(
        cpeUri: json_.containsKey('cpeUri')
            ? json_['cpeUri'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        fixingKbs: json_.containsKey('fixingKbs')
            ? (json_['fixingKbs'] as core.List)
                .map((value) => KnowledgeBase.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );