making sure piqi enums are consistent with json, so lowercasing the
values