pub fn ser_input_prompt(
object_2: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::InputPrompt,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
match input {
crate::types::InputPrompt::TextPrompt(inner) => {
#[allow(unused_mut)]
let mut object_1 = object_2.key("textPrompt").start_object();
crate::protocol_serde::shape_text_prompt::ser_text_prompt(&mut object_1, inner)?;
object_1.finish();
}
crate::types::InputPrompt::Unknown => return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant("InputPrompt")),
}
Ok(())
}