package com.bbva.arq.devops.ae.mirrorgate.model;

import java.util.HashMap;
import java.util.Map;

public enum EventType {
    BUILD("BuildType"),
    FEATURE("FeatureType"),
    REVIEW("ReviewType");

    private final String value;

    private EventType(String value){
        this.value = value;
    }

    public String getValue(){
        return value;
    }

    private static final Map<String, EventType> MAPPING = new HashMap<>();

    static{
        MAPPING.put("FeatureType", FEATURE);
        MAPPING.put("BuildType", BUILD);
        MAPPING.put("ReviewType", BUILD);
    }

    public static EventType fromString(String value) {
        if (MAPPING.containsKey(value)){
            return MAPPING.get(value);
        } else {
            throw new IllegalArgumentException();
        }
    }


}

@@ -563,29 +563,30 @@
 eviewType%22, 
-BUILD
+REVIEW
 );%0A    %7D%0A%0A  

fix typo