toJson method

Map<String, dynamic> toJson()

Converts to JSON.

Implementation

Map<String, dynamic> toJson() => {
  if (format != null) 'format': format!.toJson(),
  if (noiseReduction != null)
    'noise_reduction': noiseReduction!.toJson()
  else if (clearNoiseReduction)
    'noise_reduction': null,
  if (transcription != null)
    'transcription': transcription!.toJson()
  else if (clearTranscription)
    'transcription': null,
  if (turnDetection != null)
    'turn_detection': turnDetection!.toJson()
  else if (clearTurnDetection)
    'turn_detection': null,
};