@Override public Application convert(ApplicationJson source) { Application application = new Application(); application.setName(source.getName()); application.setProvider(source.getProvider()); application.setEnabled(Boolean.valueOf(source.getEnabled())); return application; }
public Application update(Application application, ApplicationJson json) { application.setProvider(json.getProvider()); application.setName(json.getName()); application.setEnabled(Boolean.valueOf(json.getEnabled())); return application; }