toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (diarizationConfig != null) 'diarizationConfig': diarizationConfig!,
      if (enableAutomaticPunctuation != null)
        'enableAutomaticPunctuation': enableAutomaticPunctuation!,
      if (enableSpokenEmojis != null)
        'enableSpokenEmojis': enableSpokenEmojis!,
      if (enableSpokenPunctuation != null)
        'enableSpokenPunctuation': enableSpokenPunctuation!,
      if (enableWordConfidence != null)
        'enableWordConfidence': enableWordConfidence!,
      if (enableWordTimeOffsets != null)
        'enableWordTimeOffsets': enableWordTimeOffsets!,
      if (maxAlternatives != null) 'maxAlternatives': maxAlternatives!,
      if (multiChannelMode != null) 'multiChannelMode': multiChannelMode!,
      if (profanityFilter != null) 'profanityFilter': profanityFilter!,
    };