/**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'address')) {
         if (!is_object($object->address)) {
             throw new UnexpectedValueException('value \'' . print_r($object->address, true) . '\' is not an object');
         }
         $value = new AddressPersonal();
         $this->address = $value->fromObject($object->address);
     }
     if (property_exists($object, 'companyInformation')) {
         if (!is_object($object->companyInformation)) {
             throw new UnexpectedValueException('value \'' . print_r($object->companyInformation, true) . '\' is not an object');
         }
         $value = new CompanyInformation();
         $this->companyInformation = $value->fromObject($object->companyInformation);
     }
     if (property_exists($object, 'contactDetails')) {
         if (!is_object($object->contactDetails)) {
             throw new UnexpectedValueException('value \'' . print_r($object->contactDetails, true) . '\' is not an object');
         }
         $value = new ContactDetailsBase();
         $this->contactDetails = $value->fromObject($object->contactDetails);
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'faxNumber')) {
         $this->faxNumber = $object->faxNumber;
     }
     if (property_exists($object, 'phoneNumber')) {
         $this->phoneNumber = $object->phoneNumber;
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     return $this;
 }