JsonObject deserializer = parser.parse(serialized).getAsJsonObject();
x = deserializer.get(Constants.X_PROPERTY).getAsInt();
y = deserializer.get(Constants.Y_PROPERTY).getAsInt();
y = deserializer.get(Constants.Z_PROPERTY).getAsInt();
} catch (IllegalStateException e) {
throw new InvalidSerialException(e);
} catch (NullPointerException e) {
throw new InvalidSerialException(e);
} catch (JsonParseException e) {
throw new InvalidSerialException(e);
}
}