RecognitionConfig.fromJson constructor
RecognitionConfig.fromJson(
- Map json_
Implementation
RecognitionConfig.fromJson(core.Map json_)
: this(
adaptation: json_.containsKey('adaptation')
? SpeechAdaptation.fromJson(
json_['adaptation'] as core.Map<core.String, core.dynamic>)
: null,
autoDecodingConfig: json_.containsKey('autoDecodingConfig')
? AutoDetectDecodingConfig.fromJson(json_['autoDecodingConfig']
as core.Map<core.String, core.dynamic>)
: null,
explicitDecodingConfig: json_.containsKey('explicitDecodingConfig')
? ExplicitDecodingConfig.fromJson(json_['explicitDecodingConfig']
as core.Map<core.String, core.dynamic>)
: null,
features: json_.containsKey('features')
? RecognitionFeatures.fromJson(
json_['features'] as core.Map<core.String, core.dynamic>)
: null,
languageCodes: json_.containsKey('languageCodes')
? (json_['languageCodes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
model:
json_.containsKey('model') ? json_['model'] as core.String : null,
transcriptNormalization: json_.containsKey('transcriptNormalization')
? TranscriptNormalization.fromJson(
json_['transcriptNormalization']
as core.Map<core.String, core.dynamic>)
: null,
translationConfig: json_.containsKey('translationConfig')
? TranslationConfig.fromJson(json_['translationConfig']
as core.Map<core.String, core.dynamic>)
: null,
);