FileOccurrence.fromJson constructor
FileOccurrence.fromJson(
- Map _json
Implementation
FileOccurrence.fromJson(core.Map _json)
: this(
attributions: _json.containsKey('attributions')
? (_json['attributions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
comment: _json.containsKey('comment')
? _json['comment'] as core.String
: null,
contributors: _json.containsKey('contributors')
? (_json['contributors'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
copyright: _json.containsKey('copyright')
? _json['copyright'] as core.String
: null,
filesLicenseInfo: _json.containsKey('filesLicenseInfo')
? (_json['filesLicenseInfo'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
id: _json.containsKey('id') ? _json['id'] as core.String : null,
licenseConcluded: _json.containsKey('licenseConcluded')
? License.fromJson(_json['licenseConcluded']
as core.Map<core.String, core.dynamic>)
: null,
notice: _json.containsKey('notice')
? _json['notice'] as core.String
: null,
);