v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormatListFromJson function

List<V1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat> v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormatListFromJson(
  1. List? v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat, [
  2. List<V1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat>? defaultValue
])

Implementation

List<enums.V1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat>
    v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormatListFromJson(
  List? v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat, [
  List<enums.V1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat>?
      defaultValue,
]) {
  if (v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat == null) {
    return defaultValue ?? [];
  }

  return v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormat
      .map((e) =>
          v1TextToSpeechVoiceIdStreamWithTimestampsPostOutputFormatFromJson(
              e.toString()))
      .toList();
}