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