in awsiot/greengrasscoreipc/model.py [0:0]
def _to_payload(self):
payload = {}
if self.detailed_deployment_status is not None:
payload['detailedDeploymentStatus'] = self.detailed_deployment_status
if self.deployment_error_stack is not None:
payload['deploymentErrorStack'] = self.deployment_error_stack
if self.deployment_error_types is not None:
payload['deploymentErrorTypes'] = self.deployment_error_types
if self.deployment_failure_cause is not None:
payload['deploymentFailureCause'] = self.deployment_failure_cause
return payload