v1SpeechToSpeechVoiceIdPostOutputFormatNullableListFromJson function

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

Implementation

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

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