v1TextToVoiceCreatePreviewsPostOutputFormatNullableListFromJson function

List<V1TextToVoiceCreatePreviewsPostOutputFormat>? v1TextToVoiceCreatePreviewsPostOutputFormatNullableListFromJson(
  1. List? v1TextToVoiceCreatePreviewsPostOutputFormat, [
  2. List<V1TextToVoiceCreatePreviewsPostOutputFormat>? defaultValue
])

Implementation

List<enums.V1TextToVoiceCreatePreviewsPostOutputFormat>?
    v1TextToVoiceCreatePreviewsPostOutputFormatNullableListFromJson(
  List? v1TextToVoiceCreatePreviewsPostOutputFormat, [
  List<enums.V1TextToVoiceCreatePreviewsPostOutputFormat>? defaultValue,
]) {
  if (v1TextToVoiceCreatePreviewsPostOutputFormat == null) {
    return defaultValue;
  }

  return v1TextToVoiceCreatePreviewsPostOutputFormat
      .map((e) =>
          v1TextToVoiceCreatePreviewsPostOutputFormatFromJson(e.toString()))
      .toList();
}