public static UpdatePatchBaselineResponse Unmarshall(UnmarshallerContext _ctx)
        {
            UpdatePatchBaselineResponse updatePatchBaselineResponse = new UpdatePatchBaselineResponse();

            updatePatchBaselineResponse.HttpResponse = _ctx.HttpResponse;
            updatePatchBaselineResponse.RequestId    = _ctx.StringValue("UpdatePatchBaseline.RequestId");

            UpdatePatchBaselineResponse.UpdatePatchBaseline_PatchBaseline patchBaseline = new UpdatePatchBaselineResponse.UpdatePatchBaseline_PatchBaseline();
            patchBaseline.Id                          = _ctx.StringValue("UpdatePatchBaseline.PatchBaseline.Id");
            patchBaseline.Name                        = _ctx.StringValue("UpdatePatchBaseline.PatchBaseline.Name");
            patchBaseline.CreatedDate                 = _ctx.StringValue("UpdatePatchBaseline.PatchBaseline.CreatedDate");
            patchBaseline.CreatedBy                   = _ctx.StringValue("UpdatePatchBaseline.PatchBaseline.CreatedBy");
            patchBaseline.UpdatedDate                 = _ctx.StringValue("UpdatePatchBaseline.PatchBaseline.UpdatedDate");
            patchBaseline.UpdatedBy                   = _ctx.StringValue("UpdatePatchBaseline.PatchBaseline.UpdatedBy");
            patchBaseline.Description                 = _ctx.StringValue("UpdatePatchBaseline.PatchBaseline.Description");
            patchBaseline.ShareType                   = _ctx.StringValue("UpdatePatchBaseline.PatchBaseline.ShareType");
            patchBaseline.OperationSystem             = _ctx.StringValue("UpdatePatchBaseline.PatchBaseline.OperationSystem");
            patchBaseline.ApprovalRules               = _ctx.StringValue("UpdatePatchBaseline.PatchBaseline.ApprovalRules");
            updatePatchBaselineResponse.PatchBaseline = patchBaseline;

            return(updatePatchBaselineResponse);
        }
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            UpdatePatchBaselineResponse response = new UpdatePatchBaselineResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;

            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("ApprovalRules", targetDepth))
                {
                    var unmarshaller = PatchRuleGroupUnmarshaller.Instance;
                    response.ApprovalRules = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ApprovedPatches", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance);
                    response.ApprovedPatches = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ApprovedPatchesComplianceLevel", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.ApprovedPatchesComplianceLevel = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ApprovedPatchesEnableNonSecurity", targetDepth))
                {
                    var unmarshaller = BoolUnmarshaller.Instance;
                    response.ApprovedPatchesEnableNonSecurity = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("BaselineId", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.BaselineId = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("CreatedDate", targetDepth))
                {
                    var unmarshaller = DateTimeUnmarshaller.Instance;
                    response.CreatedDate = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("Description", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Description = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("GlobalFilters", targetDepth))
                {
                    var unmarshaller = PatchFilterGroupUnmarshaller.Instance;
                    response.GlobalFilters = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ModifiedDate", targetDepth))
                {
                    var unmarshaller = DateTimeUnmarshaller.Instance;
                    response.ModifiedDate = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("Name", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.Name = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("OperatingSystem", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.OperatingSystem = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("RejectedPatches", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance);
                    response.RejectedPatches = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("RejectedPatchesAction", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.RejectedPatchesAction = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("Sources", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller <PatchSource, PatchSourceUnmarshaller>(PatchSourceUnmarshaller.Instance);
                    response.Sources = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return(response);
        }