pub(crate) fn de_document_payload(input: &[u8]) -> ::std::result::Result<::aws_smithy_types::Document, ::aws_smithy_json::deserialize::error::DeserializeError> {
let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(input).peekable();
let tokens = &mut tokens_owned;
let result =
Some(::aws_smithy_json::deserialize::token::expect_document(tokens)?)
.ok_or_else(|| ::aws_smithy_json::deserialize::error::DeserializeError::custom("expected payload member value"));
if tokens.next().is_some() {
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom("found more JSON tokens after completing parsing"));
}
result
}