public EyeOpen unmarshall(JsonUnmarshallerContext context) throws Exception { EyeOpen eyeOpen = new EyeOpen();
public EyeOpen unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } EyeOpen eyeOpen = new EyeOpen(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Value")) { eyeOpen.setValue(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Confidence")) { eyeOpen.setConfidence(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return eyeOpen; }