pub fn ser_list_access_grants_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::list_access_grants::ListAccessGrantsInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.domain_id {
encoder.str("domainId").str(var_1.as_str());
}
if let Some(var_2) = &input.space_id {
encoder.str("spaceId").str(var_2.as_str());
}
if let Some(var_3) = &input.principal_id {
encoder.str("principalId").str(var_3.as_str());
}
if let Some(var_4) = &input.principal_type {
encoder.str("principalType").str(var_4.as_str());
}
if let Some(var_5) = &input.permission {
encoder.str("permission").str(var_5.as_str());
}
if let Some(var_6) = &input.next_token {
encoder.str("nextToken").str(var_6.as_str());
}
if let Some(var_7) = &input.max_results {
encoder.str("maxResults").integer(*var_7);
}
encoder.end();
Ok(())
}