v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormatListToJson function

List<String> v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormatListToJson(
  1. List<V1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat>? v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat
)

Implementation

List<String>
    v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormatListToJson(
        List<enums.V1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat>?
            v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat) {
  if (v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat == null) {
    return [];
  }

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