public static Angle fromString(String name) {
        if (name != null) {
            for (Angle b : Angle.values()) {
                if (name.equalsIgnoreCase(b.name)) {
                    return b;
                }
            }
        }
        return null;
    }