public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
SearchFacesResponse response = new SearchFacesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("FaceMatches", targetDepth))
{
var unmarshaller = new ListUnmarshaller<FaceMatch, FaceMatchUnmarshaller>(FaceMatchUnmarshaller.Instance);
response.FaceMatches = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SearchedFaceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SearchedFaceId = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}