Backend/src/main/java/com/team1/tm/bantutani/app/model/other/TypeStep.java
package com.team1.tm.bantutani.app.model.other;

public enum TypeStep {
    TIPS("Tips"),
    TRICK("Trik");
    private String label;

    TypeStep(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public static TypeStep getFromLabel(String label) {
        for (TypeStep e : values())
            if (e.getLabel().equalsIgnoreCase(label))
                return e;
        throw new IllegalArgumentException(label);
    }
}
