VideoSnippet.fromJson constructor

VideoSnippet.fromJson(
  1. Map json_
)

Implementation

VideoSnippet.fromJson(core.Map json_)
    : this(
        categoryId: json_.containsKey('categoryId')
            ? json_['categoryId'] as core.String
            : null,
        channelId: json_.containsKey('channelId')
            ? json_['channelId'] as core.String
            : null,
        channelTitle: json_.containsKey('channelTitle')
            ? json_['channelTitle'] as core.String
            : null,
        defaultAudioLanguage: json_.containsKey('defaultAudioLanguage')
            ? json_['defaultAudioLanguage'] as core.String
            : null,
        defaultLanguage: json_.containsKey('defaultLanguage')
            ? json_['defaultLanguage'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        liveBroadcastContent: json_.containsKey('liveBroadcastContent')
            ? json_['liveBroadcastContent'] as core.String
            : null,
        localized: json_.containsKey('localized')
            ? VideoLocalization.fromJson(
                json_['localized'] as core.Map<core.String, core.dynamic>)
            : null,
        publishedAt: json_.containsKey('publishedAt')
            ? core.DateTime.parse(json_['publishedAt'] as core.String)
            : null,
        tags: json_.containsKey('tags')
            ? (json_['tags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : 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,
      );