Represents the output of a get pipeline state action.
Inheritance: Amazon.Runtime.AmazonWebServiceResponse
        /// <summary>
        /// Unmarshaller the response from the service to the response class.
        /// </summary>  
        /// <param name="context"></param>
        /// <returns></returns>
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            GetPipelineStateResponse response = new GetPipelineStateResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("created", targetDepth))
                {
                    var unmarshaller = DateTimeUnmarshaller.Instance;
                    response.Created = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("pipelineName", targetDepth))
                {
                    var unmarshaller = StringUnmarshaller.Instance;
                    response.PipelineName = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("pipelineVersion", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.PipelineVersion = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("stageStates", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<StageState, StageStateUnmarshaller>(StageStateUnmarshaller.Instance);
                    response.StageStates = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("updated", targetDepth))
                {
                    var unmarshaller = DateTimeUnmarshaller.Instance;
                    response.Updated = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }