Detail.fromJson constructor

Detail.fromJson(
  1. Map json_
)

Implementation

Detail.fromJson(core.Map json_)
    : this(
        affectedCpeUri: json_.containsKey('affectedCpeUri')
            ? json_['affectedCpeUri'] as core.String
            : null,
        affectedPackage: json_.containsKey('affectedPackage')
            ? json_['affectedPackage'] as core.String
            : null,
        affectedVersionEnd: json_.containsKey('affectedVersionEnd')
            ? Version.fromJson(json_['affectedVersionEnd']
                as core.Map<core.String, core.dynamic>)
            : null,
        affectedVersionStart: json_.containsKey('affectedVersionStart')
            ? Version.fromJson(json_['affectedVersionStart']
                as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        fixedCpeUri: json_.containsKey('fixedCpeUri')
            ? json_['fixedCpeUri'] as core.String
            : null,
        fixedPackage: json_.containsKey('fixedPackage')
            ? json_['fixedPackage'] as core.String
            : null,
        fixedVersion: json_.containsKey('fixedVersion')
            ? Version.fromJson(
                json_['fixedVersion'] as core.Map<core.String, core.dynamic>)
            : null,
        isObsolete: json_.containsKey('isObsolete')
            ? json_['isObsolete'] as core.bool
            : 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,
      );