public static Location toModel(LocationSoap soapModel) {
if (soapModel == null) {
return null;
}
Location model = new LocationImpl();
model.setLocationId(soapModel.getLocationId());
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.setStreetAddress(soapModel.getStreetAddress());
model.setCity(soapModel.getCity());
model.setStateOrProvince(soapModel.getStateOrProvince());
model.setCountry(soapModel.getCountry());
return model;
}