ChannelSettings.fromJson constructor

ChannelSettings.fromJson(
  1. Map json_
)

Implementation

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