toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (audioEncoding != null) 'audioEncoding': audioEncoding!,
  if (disableNoSpeechRecognizedEvent != null)
    'disableNoSpeechRecognizedEvent': disableNoSpeechRecognizedEvent!,
  if (enableAutomaticPunctuation != null)
    'enableAutomaticPunctuation': enableAutomaticPunctuation!,
  if (enableWordInfo != null) 'enableWordInfo': enableWordInfo!,
  if (languageCode != null) 'languageCode': languageCode!,
  if (model != null) 'model': model!,
  if (modelVariant != null) 'modelVariant': modelVariant!,
  if (optOutConformerModelMigration != null)
    'optOutConformerModelMigration': optOutConformerModelMigration!,
  if (phraseHints != null) 'phraseHints': phraseHints!,
  if (phraseSets != null) 'phraseSets': phraseSets!,
  if (sampleRateHertz != null) 'sampleRateHertz': sampleRateHertz!,
  if (singleUtterance != null) 'singleUtterance': singleUtterance!,
  if (speechContexts != null) 'speechContexts': speechContexts!,
};