v1TextToSpeechVoiceIdStreamPostOutputFormatListFromJson function

List<V1TextToSpeechVoiceIdStreamPostOutputFormat> v1TextToSpeechVoiceIdStreamPostOutputFormatListFromJson(
  1. List? v1TextToSpeechVoiceIdStreamPostOutputFormat, [
  2. List<V1TextToSpeechVoiceIdStreamPostOutputFormat>? defaultValue
])

Implementation

List<enums.V1TextToSpeechVoiceIdStreamPostOutputFormat>
    v1TextToSpeechVoiceIdStreamPostOutputFormatListFromJson(
  List? v1TextToSpeechVoiceIdStreamPostOutputFormat, [
  List<enums.V1TextToSpeechVoiceIdStreamPostOutputFormat>? defaultValue,
]) {
  if (v1TextToSpeechVoiceIdStreamPostOutputFormat == null) {
    return defaultValue ?? [];
  }

  return v1TextToSpeechVoiceIdStreamPostOutputFormat
      .map((e) =>
          v1TextToSpeechVoiceIdStreamPostOutputFormatFromJson(e.toString()))
      .toList();
}