Playlist.fromJson constructor

Playlist.fromJson(
  1. Map json_
)

Implementation

Playlist.fromJson(core.Map json_)
    : this(
        contentDetails: json_.containsKey('contentDetails')
            ? PlaylistContentDetails.fromJson(json_['contentDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        localizations: json_.containsKey('localizations')
            ? (json_['localizations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  PlaylistLocalization.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        player: json_.containsKey('player')
            ? PlaylistPlayer.fromJson(
                json_['player'] as core.Map<core.String, core.dynamic>)
            : null,
        snippet: json_.containsKey('snippet')
            ? PlaylistSnippet.fromJson(
                json_['snippet'] as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? PlaylistStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
      );