ChannelSettings.fromJson constructor
ChannelSettings.fromJson(
- Map json_
Implementation
ChannelSettings.fromJson(core.Map json_)
: this(
country: json_.containsKey('country')
? json_['country'] as core.String
: null,
defaultLanguage: json_.containsKey('defaultLanguage')
? json_['defaultLanguage'] as core.String
: null,
defaultTab: json_.containsKey('defaultTab')
? json_['defaultTab'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
featuredChannelsTitle: json_.containsKey('featuredChannelsTitle')
? json_['featuredChannelsTitle'] as core.String
: null,
featuredChannelsUrls: json_.containsKey('featuredChannelsUrls')
? (json_['featuredChannelsUrls'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
keywords: json_.containsKey('keywords')
? json_['keywords'] as core.String
: null,
moderateComments: json_.containsKey('moderateComments')
? json_['moderateComments'] as core.bool
: null,
profileColor: json_.containsKey('profileColor')
? json_['profileColor'] as core.String
: null,
showBrowseView: json_.containsKey('showBrowseView')
? json_['showBrowseView'] as core.bool
: null,
showRelatedChannels: json_.containsKey('showRelatedChannels')
? json_['showRelatedChannels'] as core.bool
: null,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
trackingAnalyticsAccountId:
json_.containsKey('trackingAnalyticsAccountId')
? json_['trackingAnalyticsAccountId'] as core.String
: null,
unsubscribedTrailer: json_.containsKey('unsubscribedTrailer')
? json_['unsubscribedTrailer'] as core.String
: null,
);