class CountryDeploymentTransformer {

    CountryDeploymentDTO toDto(CountryDeployment countryDeployment) {
        CountryDeploymentDTO result = new CountryDeploymentDTO();
        result.setId(0L);
        if (null != countryDeployment) {
            result.setId(countryDeployment.getId());
            result.setCountry(countryTransformer.toDto(countryDeployment.getCountry()));
            result.setPlatform(countryDeployment.getPlatform());
            result.setJobUrl(countryDeployment.getJobUrl());
            result.setStatus(countryDeployment.getStatus());
            result.setResult(countryDeployment.getResult());
            result.setStartDateTime(countryDeployment.getStartDateTime());
            result.setEstimatedDuration(countryDeployment.getEstimatedDuration());
            result.setDuration(countryDeployment.getDuration());
        }
        return result;
    }

}