public DetectFacesResult unmarshall(JsonUnmarshallerContext context) throws Exception { DetectFacesResult detectFacesResult = new DetectFacesResult();
public DetectFacesResult unmarshall(JsonUnmarshallerContext context) throws Exception { DetectFacesResult detectFacesResult = new DetectFacesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("FaceDetails")) { detectFacesResult.setFaceDetails(new ListUnmarshaller<FaceDetail>( FaceDetailJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("OrientationCorrection")) { detectFacesResult.setOrientationCorrection(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return detectFacesResult; }