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