ChannelSectionSnippet.fromJson constructor

ChannelSectionSnippet.fromJson(
  1. Map json_
)

Implementation

ChannelSectionSnippet.fromJson(core.Map json_)
    : this(
        channelId: json_['channelId'] as core.String?,
        defaultLanguage: json_['defaultLanguage'] as core.String?,
        localized: json_.containsKey('localized')
            ? ChannelSectionLocalization.fromJson(
                json_['localized'] as core.Map<core.String, core.dynamic>)
            : null,
        position: json_['position'] as core.int?,
        style: json_['style'] as core.String?,
        title: json_['title'] as core.String?,
        type: json_['type'] as core.String?,
      );