v1TextToSpeechVoiceIdPostOutputFormatNullableListFromJson function

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

Implementation

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

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