toFlexAlignment

Converts a value to a FlexAlignment.

Return

The corresponding FlexAlignment or a IllegalStateException if the value isn't recognised.