public Pose unmarshall(JsonUnmarshallerContext context) throws Exception { Pose pose = new Pose();
public Pose unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Pose pose = new Pose(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Roll")) { pose.setRoll(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Yaw")) { pose.setYaw(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Pitch")) { pose.setPitch(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return pose; }