ChannelSectionSnippet.fromJson constructor

ChannelSectionSnippet.fromJson(
  1. Map json_
)

Implementation

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