code: protected function toModel(stdClass $object)
      {
          $class = $this->getClassName();
          $model = new $class;
          $model
              ->setKey($object->Key)
              ->setValue(base64_decode($object->Value));
  
          return $model;
      }
docs: Type cast object to model
  
  @param \stdClass $object
  @return \Ds\Component\Discovery\Model\Config