bodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalizationListFromJson function

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

Implementation

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

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