v1SpeechToSpeechVoiceIdStreamPostOutputFormatListToJson function

List<String> v1SpeechToSpeechVoiceIdStreamPostOutputFormatListToJson(
  1. List<V1SpeechToSpeechVoiceIdStreamPostOutputFormat>? v1SpeechToSpeechVoiceIdStreamPostOutputFormat
)

Implementation

List<String> v1SpeechToSpeechVoiceIdStreamPostOutputFormatListToJson(
    List<enums.V1SpeechToSpeechVoiceIdStreamPostOutputFormat>?
        v1SpeechToSpeechVoiceIdStreamPostOutputFormat) {
  if (v1SpeechToSpeechVoiceIdStreamPostOutputFormat == null) {
    return [];
  }

  return v1SpeechToSpeechVoiceIdStreamPostOutputFormat
      .map((e) => e.value!)
      .toList();
}