toJson method
Implementation
Map<String, dynamic> toJson() => {
if (audioData != null) 'audio_data': audioData,
if (filePath != null) 'file_path': filePath,
if (cloudStorageUrl != null) 'cloud_storage_url': cloudStorageUrl,
if (model != null) 'model': model,
if (language != null) 'language': language,
if (format != null) 'format': format,
'include_word_timing': includeWordTiming,
'include_confidence': includeConfidence,
if (temperature != null) 'temperature': temperature,
'timestamp_granularity': timestampGranularity.name,
'diarize': diarize,
if (numSpeakers != null) 'num_speakers': numSpeakers,
'tag_audio_events': tagAudioEvents,
'webhook': webhook,
if (prompt != null) 'prompt': prompt,
if (responseFormat != null) 'response_format': responseFormat,
'enable_logging': enableLogging,
};