parse and toString for @flags enums