public static VolumeGroupRestRep map(VolumeGroup from){
  if (from == null) {
    return null;
  }
  VolumeGroupRestRep rep=new VolumeGroupRestRep();
  mapDataObjectFields(from,rep);
  rep.setDescription(from.getDescription());
  rep.setRoles(from.getRoles());
  rep.setParent(toRelatedResource(ResourceTypeEnum.VOLUME_GROUP,from.getParent()));
  rep.setMigrationGroupBy(from.getMigrationGroupBy());
  rep.setMigrationType(from.getMigrationType());
  return rep;
}

public static VolumeGroupRestRep map ( VolumeGroup from ) { if ( from == null ) { return null ; } VolumeGroupRestRep rep = new VolumeGroupRestRep ( ) ; mapDataObjectFields ( from , rep ) ; rep . setDescription ( from . getDescription ( ) ) ; rep . setRoles ( from . getRoles ( ) ) ; rep . setParent ( toRelatedResource ( ResourceTypeEnum . VOLUME_GROUP , from . getParent ( ) ) ) ; rep . setMigrationGroupBy ( from . getMigrationGroupBy ( ) ) ; rep . setMigrationType ( from . getMigrationType ( ) ) ; return rep ; }
map an volumegroup to volumegrouprestrep
