LiveBroadcastContentDetails.fromJson constructor

LiveBroadcastContentDetails.fromJson(
  1. Map json_
)

Implementation

LiveBroadcastContentDetails.fromJson(core.Map json_)
    : this(
        boundStreamId: json_.containsKey('boundStreamId')
            ? json_['boundStreamId'] as core.String
            : null,
        boundStreamLastUpdateTimeMs:
            json_.containsKey('boundStreamLastUpdateTimeMs')
                ? core.DateTime.parse(
                    json_['boundStreamLastUpdateTimeMs'] as core.String)
                : null,
        closedCaptionsType: json_.containsKey('closedCaptionsType')
            ? json_['closedCaptionsType'] as core.String
            : null,
        enableAutoStart: json_.containsKey('enableAutoStart')
            ? json_['enableAutoStart'] as core.bool
            : null,
        enableAutoStop: json_.containsKey('enableAutoStop')
            ? json_['enableAutoStop'] as core.bool
            : null,
        enableClosedCaptions: json_.containsKey('enableClosedCaptions')
            ? json_['enableClosedCaptions'] as core.bool
            : null,
        enableContentEncryption: json_.containsKey('enableContentEncryption')
            ? json_['enableContentEncryption'] as core.bool
            : null,
        enableDvr: json_.containsKey('enableDvr')
            ? json_['enableDvr'] as core.bool
            : null,
        enableEmbed: json_.containsKey('enableEmbed')
            ? json_['enableEmbed'] as core.bool
            : null,
        enableLowLatency: json_.containsKey('enableLowLatency')
            ? json_['enableLowLatency'] as core.bool
            : null,
        latencyPreference: json_.containsKey('latencyPreference')
            ? json_['latencyPreference'] as core.String
            : null,
        mesh: json_.containsKey('mesh') ? json_['mesh'] as core.String : null,
        monitorStream: json_.containsKey('monitorStream')
            ? MonitorStreamInfo.fromJson(
                json_['monitorStream'] as core.Map<core.String, core.dynamic>)
            : null,
        projection: json_.containsKey('projection')
            ? json_['projection'] as core.String
            : null,
        recordFromStart: json_.containsKey('recordFromStart')
            ? json_['recordFromStart'] as core.bool
            : null,
        startWithSlate: json_.containsKey('startWithSlate')
            ? json_['startWithSlate'] as core.bool
            : null,
        stereoLayout: json_.containsKey('stereoLayout')
            ? json_['stereoLayout'] as core.String
            : null,
      );