LiveBroadcastSnippet.fromJson constructor
LiveBroadcastSnippet.fromJson(
- Map json_
Implementation
LiveBroadcastSnippet.fromJson(core.Map json_)
: this(
actualEndTime: json_.containsKey('actualEndTime')
? core.DateTime.parse(json_['actualEndTime'] as core.String)
: null,
actualStartTime: json_.containsKey('actualStartTime')
? core.DateTime.parse(json_['actualStartTime'] as core.String)
: null,
channelId: json_.containsKey('channelId')
? json_['channelId'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
isDefaultBroadcast: json_.containsKey('isDefaultBroadcast')
? json_['isDefaultBroadcast'] as core.bool
: null,
liveChatId: json_.containsKey('liveChatId')
? json_['liveChatId'] as core.String
: null,
publishedAt: json_.containsKey('publishedAt')
? core.DateTime.parse(json_['publishedAt'] as core.String)
: null,
scheduledEndTime: json_.containsKey('scheduledEndTime')
? core.DateTime.parse(json_['scheduledEndTime'] as core.String)
: null,
scheduledStartTime: json_.containsKey('scheduledStartTime')
? core.DateTime.parse(json_['scheduledStartTime'] 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,
);