/**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'bankAccountBban')) {
         if (!is_object($object->bankAccountBban)) {
             throw new UnexpectedValueException('value \'' . print_r($object->bankAccountBban, true) . '\' is not an object');
         }
         $value = new BankAccountBban();
         $this->bankAccountBban = $value->fromObject($object->bankAccountBban);
     }
     if (property_exists($object, 'bankAccountIban')) {
         if (!is_object($object->bankAccountIban)) {
             throw new UnexpectedValueException('value \'' . print_r($object->bankAccountIban, true) . '\' is not an object');
         }
         $value = new BankAccountIban();
         $this->bankAccountIban = $value->fromObject($object->bankAccountIban);
     }
     if (property_exists($object, 'bankData')) {
         if (!is_object($object->bankData)) {
             throw new UnexpectedValueException('value \'' . print_r($object->bankData, true) . '\' is not an object');
         }
         $value = new BankData();
         $this->bankData = $value->fromObject($object->bankData);
     }
     if (property_exists($object, 'swift')) {
         if (!is_object($object->swift)) {
             throw new UnexpectedValueException('value \'' . print_r($object->swift, true) . '\' is not an object');
         }
         $value = new Swift();
         $this->swift = $value->fromObject($object->swift);
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'amountOfMoney')) {
         if (!is_object($object->amountOfMoney)) {
             throw new UnexpectedValueException('value \'' . print_r($object->amountOfMoney, true) . '\' is not an object');
         }
         $value = new AmountOfMoney();
         $this->amountOfMoney = $value->fromObject($object->amountOfMoney);
     }
     if (property_exists($object, 'bankAccountBban')) {
         if (!is_object($object->bankAccountBban)) {
             throw new UnexpectedValueException('value \'' . print_r($object->bankAccountBban, true) . '\' is not an object');
         }
         $value = new BankAccountBban();
         $this->bankAccountBban = $value->fromObject($object->bankAccountBban);
     }
     if (property_exists($object, 'bankAccountIban')) {
         if (!is_object($object->bankAccountIban)) {
             throw new UnexpectedValueException('value \'' . print_r($object->bankAccountIban, true) . '\' is not an object');
         }
         $value = new BankAccountIban();
         $this->bankAccountIban = $value->fromObject($object->bankAccountIban);
     }
     if (property_exists($object, 'customer')) {
         if (!is_object($object->customer)) {
             throw new UnexpectedValueException('value \'' . print_r($object->customer, true) . '\' is not an object');
         }
         $value = new PayoutCustomer();
         $this->customer = $value->fromObject($object->customer);
     }
     if (property_exists($object, 'payoutDate')) {
         $this->payoutDate = $object->payoutDate;
     }
     if (property_exists($object, 'payoutText')) {
         $this->payoutText = $object->payoutText;
     }
     if (property_exists($object, 'references')) {
         if (!is_object($object->references)) {
             throw new UnexpectedValueException('value \'' . print_r($object->references, true) . '\' is not an object');
         }
         $value = new PayoutReferences();
         $this->references = $value->fromObject($object->references);
     }
     if (property_exists($object, 'swiftCode')) {
         $this->swiftCode = $object->swiftCode;
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'authorisationId')) {
         $this->authorisationId = $object->authorisationId;
     }
     if (property_exists($object, 'bankAccountBban')) {
         if (!is_object($object->bankAccountBban)) {
             throw new UnexpectedValueException('value \'' . print_r($object->bankAccountBban, true) . '\' is not an object');
         }
         $value = new BankAccountBban();
         $this->bankAccountBban = $value->fromObject($object->bankAccountBban);
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'bankCity')) {
         $this->bankCity = $object->bankCity;
     }
     if (property_exists($object, 'swiftCode')) {
         $this->swiftCode = $object->swiftCode;
     }
     return $this;
 }