LiveBroadcast.fromJson constructor

LiveBroadcast.fromJson(
  1. Map json_
)

Implementation

LiveBroadcast.fromJson(core.Map json_)
    : this(
        contentDetails: json_.containsKey('contentDetails')
            ? LiveBroadcastContentDetails.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,
        monetizationDetails: json_.containsKey('monetizationDetails')
            ? LiveBroadcastMonetizationDetails.fromJson(
                json_['monetizationDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        snippet: json_.containsKey('snippet')
            ? LiveBroadcastSnippet.fromJson(
                json_['snippet'] as core.Map<core.String, core.dynamic>)
            : null,
        statistics: json_.containsKey('statistics')
            ? LiveBroadcastStatistics.fromJson(
                json_['statistics'] as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? LiveBroadcastStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
      );