Note.fromJson constructor
Note.fromJson(
- Map _json
Implementation
Note.fromJson(core.Map _json)
: this(
attestationAuthority: _json.containsKey('attestationAuthority')
? Authority.fromJson(_json['attestationAuthority']
as core.Map<core.String, core.dynamic>)
: null,
baseImage: _json.containsKey('baseImage')
? Basis.fromJson(
_json['baseImage'] as core.Map<core.String, core.dynamic>)
: null,
build: _json.containsKey('build')
? Build.fromJson(
_json['build'] as core.Map<core.String, core.dynamic>)
: null,
createTime: _json.containsKey('createTime')
? _json['createTime'] as core.String
: null,
deployable: _json.containsKey('deployable')
? Deployable.fromJson(
_json['deployable'] as core.Map<core.String, core.dynamic>)
: null,
discovery: _json.containsKey('discovery')
? Discovery.fromJson(
_json['discovery'] as core.Map<core.String, core.dynamic>)
: null,
expirationTime: _json.containsKey('expirationTime')
? _json['expirationTime'] as core.String
: null,
intoto: _json.containsKey('intoto')
? InToto.fromJson(
_json['intoto'] as core.Map<core.String, core.dynamic>)
: null,
kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
longDescription: _json.containsKey('longDescription')
? _json['longDescription'] as core.String
: null,
name: _json.containsKey('name') ? _json['name'] as core.String : null,
package: _json.containsKey('package')
? Package.fromJson(
_json['package'] as core.Map<core.String, core.dynamic>)
: null,
relatedNoteNames: _json.containsKey('relatedNoteNames')
? (_json['relatedNoteNames'] as core.List)
.map<core.String>((value) => value as core.String)
.toList()
: null,
relatedUrl: _json.containsKey('relatedUrl')
? (_json['relatedUrl'] as core.List)
.map<RelatedUrl>((value) => RelatedUrl.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
sbom: _json.containsKey('sbom')
? DocumentNote.fromJson(
_json['sbom'] as core.Map<core.String, core.dynamic>)
: null,
shortDescription: _json.containsKey('shortDescription')
? _json['shortDescription'] as core.String
: null,
spdxFile: _json.containsKey('spdxFile')
? FileNote.fromJson(
_json['spdxFile'] as core.Map<core.String, core.dynamic>)
: null,
spdxPackage: _json.containsKey('spdxPackage')
? PackageNote.fromJson(
_json['spdxPackage'] as core.Map<core.String, core.dynamic>)
: null,
spdxRelationship: _json.containsKey('spdxRelationship')
? RelationshipNote.fromJson(_json['spdxRelationship']
as core.Map<core.String, core.dynamic>)
: null,
updateTime: _json.containsKey('updateTime')
? _json['updateTime'] as core.String
: null,
vulnerability: _json.containsKey('vulnerability')
? Vulnerability.fromJson(
_json['vulnerability'] as core.Map<core.String, core.dynamic>)
: null,
);