public function toObject($object_to_fill = null, $props_to_skip = array()) { if (!$object_to_fill) { $object_to_fill = new kAssetParamsResourceContainer(); } if ($this->resource) { $object_to_fill->setResource($this->resource->toObject()); } $object_to_fill->setAssetParamsId($this->assetParamsId); return $object_to_fill; }