public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetOperationsResponse response = new GetOperationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("nextPageToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextPageToken = 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;
}