bodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalizationNullableFromJson function

BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization? bodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalizationNullableFromJson(
  1. Object? bodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization, [
  2. BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization? defaultValue
])

Implementation

enums
    .BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization?
    bodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalizationNullableFromJson(
  Object?
      bodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization, [
  enums
      .BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization?
      defaultValue,
]) {
  if (bodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization ==
      null) {
    return null;
  }
  return enums
          .BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization
          .values
          .firstWhereOrNull((e) =>
              e.value ==
              bodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization) ??
      defaultValue;
}