in greengrass_ipc/source/GreengrassCoreIpcModel.cpp [151:187]
void DeploymentStatusDetails::s_loadFromJsonView(
DeploymentStatusDetails &deploymentStatusDetails,
const Aws::Crt::JsonView &jsonView) noexcept
{
if (jsonView.ValueExists("detailedDeploymentStatus"))
{
deploymentStatusDetails.m_detailedDeploymentStatus =
Aws::Crt::Optional<Aws::Crt::String>(jsonView.GetString("detailedDeploymentStatus"));
}
if (jsonView.ValueExists("deploymentErrorStack"))
{
deploymentStatusDetails.m_deploymentErrorStack = Aws::Crt::Vector<Aws::Crt::String>();
for (const Aws::Crt::JsonView &deploymentErrorStackJsonView : jsonView.GetArray("deploymentErrorStack"))
{
Aws::Crt::Optional<Aws::Crt::String> deploymentErrorStackItem;
deploymentErrorStackItem =
Aws::Crt::Optional<Aws::Crt::String>(deploymentErrorStackJsonView.AsString());
deploymentStatusDetails.m_deploymentErrorStack.value().push_back(deploymentErrorStackItem.value());
}
}
if (jsonView.ValueExists("deploymentErrorTypes"))
{
deploymentStatusDetails.m_deploymentErrorTypes = Aws::Crt::Vector<Aws::Crt::String>();
for (const Aws::Crt::JsonView &deploymentErrorTypesJsonView : jsonView.GetArray("deploymentErrorTypes"))
{
Aws::Crt::Optional<Aws::Crt::String> deploymentErrorTypesItem;
deploymentErrorTypesItem =
Aws::Crt::Optional<Aws::Crt::String>(deploymentErrorTypesJsonView.AsString());
deploymentStatusDetails.m_deploymentErrorTypes.value().push_back(deploymentErrorTypesItem.value());
}
}
if (jsonView.ValueExists("deploymentFailureCause"))
{
deploymentStatusDetails.m_deploymentFailureCause =
Aws::Crt::Optional<Aws::Crt::String>(jsonView.GetString("deploymentFailureCause"));
}
}