/**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'additionalInput')) {
         if (!is_object($object->additionalInput)) {
             throw new UnexpectedValueException('value \'' . print_r($object->additionalInput, true) . '\' is not an object');
         }
         $value = new AdditionalOrderInputAirlineData();
         $this->additionalInput = $value->fromObject($object->additionalInput);
     }
     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, 'customer')) {
         if (!is_object($object->customer)) {
             throw new UnexpectedValueException('value \'' . print_r($object->customer, true) . '\' is not an object');
         }
         $value = new CustomerRiskAssessment();
         $this->customer = $value->fromObject($object->customer);
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'additionalInput')) {
         if (!is_object($object->additionalInput)) {
             throw new UnexpectedValueException('value \'' . print_r($object->additionalInput, true) . '\' is not an object');
         }
         $value = new AdditionalOrderInputAirlineData();
         $this->additionalInput = $value->fromObject($object->additionalInput);
     }
     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 OrderReferencesApprovePayment();
         $this->references = $value->fromObject($object->references);
     }
     return $this;
 }