Implemented enum parsing and serializing.