updated the metadata dto class to not have seperate fields