code: def fromDictionary(value):
          
          if isinstance(value, dict):
              pp = PortalParameters()
              for k,v in value.items():
                  setattr(pp, "_%s" % k, v)
              return pp
          else:
              raise AttributeError("Invalid input.")
docs: creates the portal properties object from a dictionary