public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetServersResponse response = new GetServersResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("lastModifiedOn", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.LastModifiedOn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("serverCatalogStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ServerCatalogStatus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("serverList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Server, ServerUnmarshaller>(ServerUnmarshaller.Instance);
response.ServerList = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}