ChannelSnippet.fromJson constructor

ChannelSnippet.fromJson(
  1. Map json_
)

Implementation

ChannelSnippet.fromJson(core.Map json_)
    : this(
        country: json_.containsKey('country')
            ? json_['country'] as core.String
            : null,
        customUrl: json_.containsKey('customUrl')
            ? json_['customUrl'] as core.String
            : null,
        defaultLanguage: json_.containsKey('defaultLanguage')
            ? json_['defaultLanguage'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        localized: json_.containsKey('localized')
            ? ChannelLocalization.fromJson(
                json_['localized'] as core.Map<core.String, core.dynamic>)
            : null,
        publishedAt: json_.containsKey('publishedAt')
            ? core.DateTime.parse(json_['publishedAt'] as core.String)
            : null,
        thumbnails: json_.containsKey('thumbnails')
            ? ThumbnailDetails.fromJson(
                json_['thumbnails'] as core.Map<core.String, core.dynamic>)
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );