GoogleCloudVideointelligenceV1SpeechTranscriptionConfig.fromJson constructor
GoogleCloudVideointelligenceV1SpeechTranscriptionConfig.fromJson(
- Map json_
Implementation
GoogleCloudVideointelligenceV1SpeechTranscriptionConfig.fromJson(
core.Map json_)
: this(
audioTracks: json_.containsKey('audioTracks')
? (json_['audioTracks'] as core.List)
.map((value) => value as core.int)
.toList()
: null,
diarizationSpeakerCount: json_.containsKey('diarizationSpeakerCount')
? json_['diarizationSpeakerCount'] as core.int
: null,
enableAutomaticPunctuation:
json_.containsKey('enableAutomaticPunctuation')
? json_['enableAutomaticPunctuation'] as core.bool
: null,
enableSpeakerDiarization:
json_.containsKey('enableSpeakerDiarization')
? json_['enableSpeakerDiarization'] as core.bool
: null,
enableWordConfidence: json_.containsKey('enableWordConfidence')
? json_['enableWordConfidence'] as core.bool
: null,
filterProfanity: json_.containsKey('filterProfanity')
? json_['filterProfanity'] as core.bool
: null,
languageCode: json_.containsKey('languageCode')
? json_['languageCode'] as core.String
: null,
maxAlternatives: json_.containsKey('maxAlternatives')
? json_['maxAlternatives'] as core.int
: null,
speechContexts: json_.containsKey('speechContexts')
? (json_['speechContexts'] as core.List)
.map((value) =>
GoogleCloudVideointelligenceV1SpeechContext.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);