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