public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DetectLabelsResponse response = new DetectLabelsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Labels", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Label, LabelUnmarshaller>(LabelUnmarshaller.Instance);
response.Labels = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("OrientationCorrection", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.OrientationCorrection = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}