godot saving enum names in variable

enum Direction {
    UP,
    DOWN,
    LEFT,
    RIGHT
}

var selectedDirectionName = Direction.UP.name