Can we split this into a named method similar to `deserialize_attribute`? Maybe `map_enum_attribute` or something