public static List<DashboardDto> transformToDto(List<Dashboard> dashboards){
  if (dashboards == null) {
    throw new WebApplicationException("Null entity object cannot be converted to Dto object.",Status.INTERNAL_SERVER_ERROR);
  }
  List<DashboardDto> result=new ArrayList<DashboardDto>();
  for (  Dashboard dashboard : dashboards) {
    result.add(transformToDto(dashboard));
  }
  return result;
}

public static List < DashboardDto > transformToDto ( List < Dashboard > dashboards ) { if ( dashboards == null ) { throw new WebApplicationException ( "Null entity object cannot be converted to Dto object." , Status . INTERNAL_SERVER_ERROR ) ; } List < DashboardDto > result = new ArrayList < DashboardDto > ( ) ; for ( Dashboard dashboard : dashboards ) { result . add ( transformToDto ( dashboard ) ) ; } return result ; }
converts list of alert entity objects to list of alertdto objects .
