// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub(crate) fn de_token_output_payload(
    body: &[u8],
) -> std::result::Result<
    ::std::option::Option<crate::types::CreateOAuth2TokenResponseBody>,
    crate::operation::create_o_auth2_token::CreateOAuth2TokenError,
> {
    (!body.is_empty())
        .then(|| {
            crate::protocol_serde::shape_create_o_auth2_token_response_body::de_create_o_auth2_token_response_body_payload(body)
                .map_err(crate::operation::create_o_auth2_token::CreateOAuth2TokenError::unhandled)
        })
        .transpose()
}
