public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetOperationsForResourceResponse response = new GetOperationsForResourceResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("nextPageCount", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextPageCount = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("operations", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Operation, OperationUnmarshaller>(OperationUnmarshaller.Instance);
response.Operations = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}