v1TextToSpeechVoiceIdPostOutputFormatListFromJson function

List<V1TextToSpeechVoiceIdPostOutputFormat> v1TextToSpeechVoiceIdPostOutputFormatListFromJson(
  1. List? v1TextToSpeechVoiceIdPostOutputFormat, [
  2. List<V1TextToSpeechVoiceIdPostOutputFormat>? defaultValue
])

Implementation

List<enums.V1TextToSpeechVoiceIdPostOutputFormat>
    v1TextToSpeechVoiceIdPostOutputFormatListFromJson(
  List? v1TextToSpeechVoiceIdPostOutputFormat, [
  List<enums.V1TextToSpeechVoiceIdPostOutputFormat>? defaultValue,
]) {
  if (v1TextToSpeechVoiceIdPostOutputFormat == null) {
    return defaultValue ?? [];
  }

  return v1TextToSpeechVoiceIdPostOutputFormat
      .map((e) => v1TextToSpeechVoiceIdPostOutputFormatFromJson(e.toString()))
      .toList();
}