aws_sdk_amplifyuibuilder/protocol_serde/
shape_get_theme_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub(crate) fn de_theme_payload(
3    body: &[u8],
4) -> std::result::Result<::std::option::Option<crate::types::Theme>, crate::operation::get_theme::GetThemeError> {
5    (!body.is_empty())
6        .then(|| crate::protocol_serde::shape_theme::de_theme_payload(body).map_err(crate::operation::get_theme::GetThemeError::unhandled))
7        .transpose()
8}