How to to derive enum/union values in Flow without duplication

A common pattern in Js when dealing with a pre-defined set of string values is to enclose them in an object and use it as a map.