package com.almende.dialog;
import com.fasterxml.jackson.annotation.JsonCreator;


public enum LogLevel
{
    SEVERE, WARNING, DDR, INFO, DEBUG;

    @JsonCreator
    public static LogLevel fromJson( String name )
    {
        return valueOf( name.toUpperCase() );
    }
}

package com.almende.dialog;
import com.fasterxml.jackson.annotation.JsonCreator;


public enum LogLevel
{
    SEVERE, WARNING, DDR, INFO, DEBUG;

    @JsonCreator
    public static LogLevel fromJson( String name )
    {
        return name != null && !name.isEmpty() ? valueOf( name.toUpperCase() ) : null;
    }
}

return null when LogLevel string is null