bodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalizationNullableListFromJson function

List<BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization>? bodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalizationNullableListFromJson(
  1. List? bodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization, [
  2. List<BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization>? defaultValue
])

Implementation

List<enums.BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization>?
    bodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalizationNullableListFromJson(
  List? bodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization, [
  List<enums.BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization>?
      defaultValue,
]) {
  if (bodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization == null) {
    return defaultValue;
  }

  return bodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization
      .map((e) =>
          bodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalizationFromJson(
              e.toString()))
      .toList();
}