refactor Mapper.to_h
refactor Mapper.from_h