Video.fromJson constructor

Video.fromJson(
  1. Map json_
)

Implementation

Video.fromJson(core.Map json_)
    : this(
        ageGating: json_.containsKey('ageGating')
            ? VideoAgeGating.fromJson(
                json_['ageGating'] as core.Map<core.String, core.dynamic>)
            : null,
        contentDetails: json_.containsKey('contentDetails')
            ? VideoContentDetails.fromJson(json_['contentDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        fileDetails: json_.containsKey('fileDetails')
            ? VideoFileDetails.fromJson(
                json_['fileDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        liveStreamingDetails: json_.containsKey('liveStreamingDetails')
            ? VideoLiveStreamingDetails.fromJson(json_['liveStreamingDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        localizations: json_.containsKey('localizations')
            ? (json_['localizations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  VideoLocalization.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        monetizationDetails: json_.containsKey('monetizationDetails')
            ? VideoMonetizationDetails.fromJson(json_['monetizationDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        player: json_.containsKey('player')
            ? VideoPlayer.fromJson(
                json_['player'] as core.Map<core.String, core.dynamic>)
            : null,
        processingDetails: json_.containsKey('processingDetails')
            ? VideoProcessingDetails.fromJson(json_['processingDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        projectDetails: json_.containsKey('projectDetails')
            ? VideoProjectDetails.fromJson(json_['projectDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        recordingDetails: json_.containsKey('recordingDetails')
            ? VideoRecordingDetails.fromJson(json_['recordingDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        snippet: json_.containsKey('snippet')
            ? VideoSnippet.fromJson(
                json_['snippet'] as core.Map<core.String, core.dynamic>)
            : null,
        statistics: json_.containsKey('statistics')
            ? VideoStatistics.fromJson(
                json_['statistics'] as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? VideoStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
        suggestions: json_.containsKey('suggestions')
            ? VideoSuggestions.fromJson(
                json_['suggestions'] as core.Map<core.String, core.dynamic>)
            : null,
        topicDetails: json_.containsKey('topicDetails')
            ? VideoTopicDetails.fromJson(
                json_['topicDetails'] as core.Map<core.String, core.dynamic>)
            : null,
      );