pub fn ser_app_source_config_request(
object_9: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::AppSourceConfigRequest,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
match input {
crate::types::AppSourceConfigRequest::GitHubSource(inner) => {
#[allow(unused_mut)]
let mut object_1 = object_9.key("GitHubSource").start_object();
crate::protocol_serde::shape_app_git_hub_source_request::ser_app_git_hub_source_request(&mut object_1, inner)?;
object_1.finish();
}
crate::types::AppSourceConfigRequest::GitLabSource(inner) => {
#[allow(unused_mut)]
let mut object_2 = object_9.key("GitLabSource").start_object();
crate::protocol_serde::shape_app_git_lab_source_request::ser_app_git_lab_source_request(&mut object_2, inner)?;
object_2.finish();
}
crate::types::AppSourceConfigRequest::Unknown => {
return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
"AppSourceConfigRequest",
))
}
}
Ok(())
}