v1SpeechToSpeechVoiceIdPostOutputFormatListFromJson function

List<V1SpeechToSpeechVoiceIdPostOutputFormat> v1SpeechToSpeechVoiceIdPostOutputFormatListFromJson(
  1. List? v1SpeechToSpeechVoiceIdPostOutputFormat, [
  2. List<V1SpeechToSpeechVoiceIdPostOutputFormat>? defaultValue
])

Implementation

List<enums.V1SpeechToSpeechVoiceIdPostOutputFormat>
    v1SpeechToSpeechVoiceIdPostOutputFormatListFromJson(
  List? v1SpeechToSpeechVoiceIdPostOutputFormat, [
  List<enums.V1SpeechToSpeechVoiceIdPostOutputFormat>? defaultValue,
]) {
  if (v1SpeechToSpeechVoiceIdPostOutputFormat == null) {
    return defaultValue ?? [];
  }

  return v1SpeechToSpeechVoiceIdPostOutputFormat
      .map((e) => v1SpeechToSpeechVoiceIdPostOutputFormatFromJson(e.toString()))
      .toList();
}