RecognitionFeatures.fromJson constructor
RecognitionFeatures.fromJson(
- Map json_
Implementation
RecognitionFeatures.fromJson(core.Map json_)
: this(
diarizationConfig: json_.containsKey('diarizationConfig')
? SpeakerDiarizationConfig.fromJson(json_['diarizationConfig']
as core.Map<core.String, core.dynamic>)
: null,
enableAutomaticPunctuation:
json_.containsKey('enableAutomaticPunctuation')
? json_['enableAutomaticPunctuation'] as core.bool
: null,
enableSpokenEmojis: json_.containsKey('enableSpokenEmojis')
? json_['enableSpokenEmojis'] as core.bool
: null,
enableSpokenPunctuation: json_.containsKey('enableSpokenPunctuation')
? json_['enableSpokenPunctuation'] as core.bool
: null,
enableWordConfidence: json_.containsKey('enableWordConfidence')
? json_['enableWordConfidence'] as core.bool
: null,
enableWordTimeOffsets: json_.containsKey('enableWordTimeOffsets')
? json_['enableWordTimeOffsets'] as core.bool
: null,
maxAlternatives: json_.containsKey('maxAlternatives')
? json_['maxAlternatives'] as core.int
: null,
multiChannelMode: json_.containsKey('multiChannelMode')
? json_['multiChannelMode'] as core.String
: null,
profanityFilter: json_.containsKey('profanityFilter')
? json_['profanityFilter'] as core.bool
: null,
);