Initially, this generates the enum and to/from-string functions. The JSON itself contains more data than that, but it's unused for now.