public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
BatchGetBuildsResponse response = new BatchGetBuildsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("builds", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Build, BuildUnmarshaller>(BuildUnmarshaller.Instance);
response.Builds = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("buildsNotFound", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.BuildsNotFound = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}