toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    if (voiceGender != null) 'voiceGender': voiceGender!.name,
    if (voiceId != null) 'voiceId': voiceId,
    if (voiceClone != null) 'voiceClone': voiceClone!.toMap(),
    if (sttNickName != null) 'sttNickName': sttNickName,
    if (llmNickName != null) 'llmNickName': llmNickName,
    if (ttsNickName != null) 'ttsNickName': ttsNickName,
    if (sttParams != null) 'sttParams': sttParams,
    if (llmParams != null) 'llmParams': llmParams,
    if (ttsParams != null) 'ttsParams': ttsParams,
  };
}