public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListServerNeighborsResponse response = new ListServerNeighborsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("knownDependencyCount", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.KnownDependencyCount = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("neighbors", targetDepth))
{
var unmarshaller = new ListUnmarshaller<NeighborConnectionDetail, NeighborConnectionDetailUnmarshaller>(NeighborConnectionDetailUnmarshaller.Instance);
response.Neighbors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}