v1SpeechToSpeechVoiceIdStreamPostOutputFormatNullableListFromJson function

List<V1SpeechToSpeechVoiceIdStreamPostOutputFormat>? v1SpeechToSpeechVoiceIdStreamPostOutputFormatNullableListFromJson(
  1. List? v1SpeechToSpeechVoiceIdStreamPostOutputFormat, [
  2. List<V1SpeechToSpeechVoiceIdStreamPostOutputFormat>? defaultValue
])

Implementation

List<enums.V1SpeechToSpeechVoiceIdStreamPostOutputFormat>?
    v1SpeechToSpeechVoiceIdStreamPostOutputFormatNullableListFromJson(
  List? v1SpeechToSpeechVoiceIdStreamPostOutputFormat, [
  List<enums.V1SpeechToSpeechVoiceIdStreamPostOutputFormat>? defaultValue,
]) {
  if (v1SpeechToSpeechVoiceIdStreamPostOutputFormat == null) {
    return defaultValue;
  }

  return v1SpeechToSpeechVoiceIdStreamPostOutputFormat
      .map((e) =>
          v1SpeechToSpeechVoiceIdStreamPostOutputFormatFromJson(e.toString()))
      .toList();
}