PackageIssue.fromJson constructor
PackageIssue.fromJson(
- Map json_
Implementation
PackageIssue.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,
affectedVersion: json_.containsKey('affectedVersion')
? Version.fromJson(json_['affectedVersion']
as core.Map<core.String, core.dynamic>)
: null,
effectiveSeverity: json_.containsKey('effectiveSeverity')
? json_['effectiveSeverity'] as core.String
: null,
fileLocation: json_.containsKey('fileLocation')
? (json_['fileLocation'] as core.List)
.map((value) => GrafeasV1FileLocation.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
fixAvailable: json_.containsKey('fixAvailable')
? json_['fixAvailable'] as core.bool
: 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,
packageType: json_.containsKey('packageType')
? json_['packageType'] as core.String
: null,
);