toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'key': key,
    if (webhook != null) 'webhook': webhook,
    if (trackId != null) 'track_id': trackId,
    'prompt': prompt,
    if (initAudio != null) 'init_audio': initAudio,
    if (voiceId != null) 'voice_id': voiceId,
    if (language != null) 'language': language,
    if (speed != null) 'speed': speed,
    if (temp != null) 'temp': temp,
    if (base64 != null) 'base64': base64,
    if (stream != null) 'stream': stream,
  };
}