/**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'fraudResults')) {
         if (!is_object($object->fraudResults)) {
             throw new UnexpectedValueException('value \'' . print_r($object->fraudResults, true) . '\' is not an object');
         }
         $value = new FraudResults();
         $this->fraudResults = $value->fromObject($object->fraudResults);
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'avsResult')) {
         $this->avsResult = $object->avsResult;
     }
     if (property_exists($object, 'cvvResult')) {
         $this->cvvResult = $object->cvvResult;
     }
     if (property_exists($object, 'retailDecisions')) {
         if (!is_object($object->retailDecisions)) {
             throw new UnexpectedValueException('value \'' . print_r($object->retailDecisions, true) . '\' is not an object');
         }
         $value = new FraudResultsRetailDecisions();
         $this->retailDecisions = $value->fromObject($object->retailDecisions);
     }
     return $this;
 }