public WebService map(WebServiceEntity webServiceEntity) { WebService webService = null; if (webServiceEntity != null) { webService = new WebService(); webService._id = webServiceEntity._id; webService.setSecret(webServiceEntity.getSecret()); webService.setStatus(WebService.Status.valueOf(webServiceEntity.getStatus().name())); webService.setSyncScheme(new SyncScheme(webServiceEntity.getSyncScheme().toJSONString())); } return webService; }
public WebService.Status map(WebServiceEntity.Status status) { return WebService.Status.valueOf(status.name()); }