Returns an array of CaseDetails objects and a nextToken that defines a point for pagination in the result set.
Наследование: Amazon.Runtime.AmazonWebServiceResponse
       public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
       {
           DescribeCasesResponse response = new DescribeCasesResponse();       
         
           context.Read();
           int targetDepth = context.CurrentDepth;
           while (context.ReadAtDepth(targetDepth))
           {
             
             if (context.TestExpression("cases", targetDepth))
             {
               
               var unmarshaller = new ListUnmarshaller<CaseDetails,CaseDetailsUnmarshaller>(
                   CaseDetailsUnmarshaller.GetInstance());                  
               response.Cases = unmarshaller.Unmarshall(context);
               
               continue;
             }
 
             if (context.TestExpression("nextToken", targetDepth))
             {
               response.NextToken = StringUnmarshaller.GetInstance().Unmarshall(context);
               continue;
             }
 
           }
                       
           return response;
       }                        
 public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
 {
   DescribeCasesResponse response = new DescribeCasesResponse();          
   
   context.Read();
   
   UnmarshallResult(context,response);
   return response;
 }
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            DescribeCasesResponse response = new DescribeCasesResponse();

              context.Read();

              response.DescribeCasesResult = DescribeCasesResultUnmarshaller.GetInstance().Unmarshall(context);

              return response;
        }
       private static void UnmarshallResult(JsonUnmarshallerContext context,DescribeCasesResponse response)
       {
         
           int originalDepth = context.CurrentDepth;
           int targetDepth = originalDepth + 1;
           while (context.Read())
           {
             
             if (context.TestExpression("cases", targetDepth))
             {
               context.Read();
               
               if (context.CurrentTokenType == JsonToken.Null)
               {
                   response.Cases = null;
                   continue;
               }
                 response.Cases = new List<CaseDetails>();
                 CaseDetailsUnmarshaller unmarshaller = CaseDetailsUnmarshaller.GetInstance();
               while (context.Read())
               {
                 JsonToken token = context.CurrentTokenType;                
                 if (token == JsonToken.ArrayStart)
                 {
                   continue;
                 }
                 if (token == JsonToken.ArrayEnd)
                 {
                   break;
                 }
                  response.Cases.Add(unmarshaller.Unmarshall(context));
               }
               continue;
             }
 
             if (context.TestExpression("nextToken", targetDepth))
             {
               context.Read();
               response.NextToken = StringUnmarshaller.GetInstance().Unmarshall(context);
               continue;
             }
 
               if (context.CurrentDepth <= originalDepth)
               {                   
                   return;
               }
           }
                       
           return;
       }