public static Vector4l deserialize4l(JsonElement element) {
        return new Vector4l(
                element.getAsJsonObject().get("x").getAsLong(),
                element.getAsJsonObject().get("y").getAsLong(),
                element.getAsJsonObject().get("z").getAsLong(),
                element.getAsJsonObject().get("w").getAsLong()
        );
    }
Utility for serializing and deserializing flowpowered Vector instances
helper/src/main/java/me/lucko/helper/serialize/VectorSerializers.java