Detail.fromJson constructor

Detail.fromJson(
  1. Map _json
)

Implementation

Detail.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,
        fixedLocation: _json.containsKey('fixedLocation')
            ? VulnerabilityLocation.fromJson(
                _json['fixedLocation'] as core.Map<core.String, core.dynamic>)
            : null,
        isObsolete: _json.containsKey('isObsolete')
            ? _json['isObsolete'] as core.bool
            : null,
        maxAffectedVersion: _json.containsKey('maxAffectedVersion')
            ? Version.fromJson(_json['maxAffectedVersion']
                as core.Map<core.String, core.dynamic>)
            : null,
        minAffectedVersion: _json.containsKey('minAffectedVersion')
            ? Version.fromJson(_json['minAffectedVersion']
                as core.Map<core.String, core.dynamic>)
            : null,
        package: _json.containsKey('package')
            ? _json['package'] as core.String
            : null,
        packageType: _json.containsKey('packageType')
            ? _json['packageType'] as core.String
            : null,
        severityName: _json.containsKey('severityName')
            ? _json['severityName'] as core.String
            : null,
        source: _json.containsKey('source')
            ? _json['source'] as core.String
            : null,
        sourceUpdateTime: _json.containsKey('sourceUpdateTime')
            ? _json['sourceUpdateTime'] as core.String
            : null,
        vendor: _json.containsKey('vendor')
            ? _json['vendor'] as core.String
            : null,
      );