Retrieve and set properties from and to a DTO.