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