DatafeedTarget.fromJson constructor
DatafeedTarget.fromJson(
- Map json_
Implementation
DatafeedTarget.fromJson(core.Map json_)
: this(
country: json_.containsKey('country')
? json_['country'] as core.String
: null,
excludedDestinations: json_.containsKey('excludedDestinations')
? (json_['excludedDestinations'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
feedLabel: json_.containsKey('feedLabel')
? json_['feedLabel'] as core.String
: null,
includedDestinations: json_.containsKey('includedDestinations')
? (json_['includedDestinations'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
language: json_.containsKey('language')
? json_['language'] as core.String
: null,
targetCountries: json_.containsKey('targetCountries')
? (json_['targetCountries'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);