1 package org.openecomp.sdcrests.vsp.rest.mapping;
 
   3 import org.openecomp.sdc.versioning.types.Item;
 
   4 import org.openecomp.sdcrests.mapping.MappingBase;
 
   5 import org.openecomp.sdcrests.vendorsoftwareproducts.types.VspDetailsDto;
 
   6 import org.openecomp.sdcrests.vsp.rest.services.VspItemProperty;
 
   8 public class MapItemToVspDetailsDto extends MappingBase<Item, VspDetailsDto> {
 
  10   public void doMapping(Item source, VspDetailsDto target) {
 
  11     target.setId(source.getId());
 
  12     target.setName(source.getName());
 
  13     target.setDescription(source.getDescription());
 
  14     target.setVendorId((String) source.getProperties().get(VspItemProperty.VENDOR_ID));
 
  15     target.setVendorName((String) source.getProperties().get(VspItemProperty.VENDOR_NAME));
 
  16     target.setOnboardingMethod((String) source.getProperties().get(VspItemProperty.ONBOARDING_METHOD));