Datafeed.fromJson constructor
Datafeed.fromJson(
- Map json_
Implementation
Datafeed.fromJson(core.Map json_)
: this(
attributeLanguage: json_.containsKey('attributeLanguage')
? json_['attributeLanguage'] as core.String
: null,
contentType: json_.containsKey('contentType')
? json_['contentType'] as core.String
: null,
fetchSchedule: json_.containsKey('fetchSchedule')
? DatafeedFetchSchedule.fromJson(
json_['fetchSchedule'] as core.Map<core.String, core.dynamic>)
: null,
fileName: json_.containsKey('fileName')
? json_['fileName'] as core.String
: null,
format: json_.containsKey('format')
? DatafeedFormat.fromJson(
json_['format'] as core.Map<core.String, core.dynamic>)
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
targets: json_.containsKey('targets')
? (json_['targets'] as core.List)
.map((value) => DatafeedTarget.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);