PackageNote.fromJson constructor
PackageNote.fromJson(
- Map _json
Implementation
PackageNote.fromJson(core.Map _json)
: this(
analyzed: _json.containsKey('analyzed')
? _json['analyzed'] as core.bool
: null,
attribution: _json.containsKey('attribution')
? _json['attribution'] as core.String
: null,
checksum: _json.containsKey('checksum')
? _json['checksum'] as core.String
: null,
copyright: _json.containsKey('copyright')
? _json['copyright'] as core.String
: null,
detailedDescription: _json.containsKey('detailedDescription')
? _json['detailedDescription'] as core.String
: null,
downloadLocation: _json.containsKey('downloadLocation')
? _json['downloadLocation'] as core.String
: null,
externalRefs: _json.containsKey('externalRefs')
? (_json['externalRefs'] as core.List)
.map<ExternalRef>((value) => ExternalRef.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
filesLicenseInfo: _json.containsKey('filesLicenseInfo')
? (_json['filesLicenseInfo'] as core.List)
.map<core.String>((value) => value as core.String)
.toList()
: null,
homePage: _json.containsKey('homePage')
? _json['homePage'] as core.String
: null,
licenseDeclared: _json.containsKey('licenseDeclared')
? _json['licenseDeclared'] as core.String
: null,
originator: _json.containsKey('originator')
? _json['originator'] as core.String
: null,
summaryDescription: _json.containsKey('summaryDescription')
? _json['summaryDescription'] as core.String
: null,
supplier: _json.containsKey('supplier')
? _json['supplier'] as core.String
: null,
title:
_json.containsKey('title') ? _json['title'] as core.String : null,
verificationCode: _json.containsKey('verificationCode')
? _json['verificationCode'] as core.String
: null,
version: _json.containsKey('version')
? _json['version'] as core.String
: null,
);