v1TextToSpeechVoiceIdWithTimestampsPostOutputFormatListFromJson function

List<V1TextToSpeechVoiceIdWithTimestampsPostOutputFormat> v1TextToSpeechVoiceIdWithTimestampsPostOutputFormatListFromJson(
  1. List? v1TextToSpeechVoiceIdWithTimestampsPostOutputFormat, [
  2. List<V1TextToSpeechVoiceIdWithTimestampsPostOutputFormat>? defaultValue
])

Implementation

List<enums.V1TextToSpeechVoiceIdWithTimestampsPostOutputFormat>
    v1TextToSpeechVoiceIdWithTimestampsPostOutputFormatListFromJson(
  List? v1TextToSpeechVoiceIdWithTimestampsPostOutputFormat, [
  List<enums.V1TextToSpeechVoiceIdWithTimestampsPostOutputFormat>? defaultValue,
]) {
  if (v1TextToSpeechVoiceIdWithTimestampsPostOutputFormat == null) {
    return defaultValue ?? [];
  }

  return v1TextToSpeechVoiceIdWithTimestampsPostOutputFormat
      .map((e) => v1TextToSpeechVoiceIdWithTimestampsPostOutputFormatFromJson(
          e.toString()))
      .toList();
}