Amazon.ElasticMapReduce.Model.Internal.MarshallTransformations.DescribeClusterResponseUnmarshaller.UnmarshallResult C# (CSharp) Method

UnmarshallResult() private static method

private static UnmarshallResult ( JsonUnmarshallerContext context, DescribeClusterResponse response ) : void
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
response Amazon.ElasticMapReduce.Model.DescribeClusterResponse
return void
        private static void UnmarshallResult(JsonUnmarshallerContext context,DescribeClusterResponse response)
        {
          
            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            while (context.Read())
            {
              
              if (context.TestExpression("Cluster", targetDepth))
              {
                context.Read();
                response.Cluster = ClusterUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
                if (context.CurrentDepth <= originalDepth)
                {                   
                    return;
                }
            }
                        
            return;
        }