public static Event toModel(EventSoap soapModel) {
if (soapModel == null) {
return null;
}
Event model = new EventImpl();
model.setEventId(soapModel.getEventId());
model.setCompanyId(soapModel.getCompanyId());
model.setGroupId(soapModel.getGroupId());
model.setUserId(soapModel.getUserId());
model.setCreateDate(soapModel.getCreateDate());
model.setModifiedDate(soapModel.getModifiedDate());
model.setName(soapModel.getName());
model.setDescription(soapModel.getDescription());
model.setDate(soapModel.getDate());
model.setLocationId(soapModel.getLocationId());
return model;
}