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