class SourceTransformer {

    SourceDTO toDto(Source source) {
        SourceDTO result = new SourceDTO();
        if (null != source) {
            result.setCode(source.getCode());
            result.setName(source.getName());
            result.setLetter(String.valueOf(source.getLetter()));
            result.setTechnology(source.getTechnology());
            result.setVcsUrl(source.getVcsUrl());
            result.setDefaultBranch(source.getDefaultBranch());
            result.setPostmanCountryRootFolders(source.isPostmanCountryRootFolders());
        }
        return result;
    }

}