Amazon.ServiceCatalog.Model.Internal.MarshallTransformations.DescribeProvisioningParametersResponseUnmarshaller.Unmarshall C# (CSharp) Method

Unmarshall() public method

Unmarshaller the response from the service to the response class.
public Unmarshall ( JsonUnmarshallerContext context ) : AmazonWebServiceResponse
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
return Amazon.Runtime.AmazonWebServiceResponse
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            DescribeProvisioningParametersResponse response = new DescribeProvisioningParametersResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("ConstraintSummaries", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<ConstraintSummary, ConstraintSummaryUnmarshaller>(ConstraintSummaryUnmarshaller.Instance);
                    response.ConstraintSummaries = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ProvisioningArtifactParameters", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<ProvisioningArtifactParameter, ProvisioningArtifactParameterUnmarshaller>(ProvisioningArtifactParameterUnmarshaller.Instance);
                    response.ProvisioningArtifactParameters = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("UsageInstructions", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<UsageInstruction, UsageInstructionUnmarshaller>(UsageInstructionUnmarshaller.Instance);
                    response.UsageInstructions = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }
DescribeProvisioningParametersResponseUnmarshaller