protected function fromJsonElement($elements)
 {
     parent::fromJsonElement($elements);
     if (isset($elements->product_configuration)) {
         $productConfiguration = new ProductConfigurationProperties();
         $this->product_configuration = $productConfiguration->fromJsonElement($elements->product_configuration);
     }
     return $this;
 }
 protected function fromJsonElement($elements)
 {
     parent::fromJsonElement($elements);
     unset($this->configurations);
     $this->configurations = [];
     if (isset($elements->configurations)) {
         foreach ($elements->configurations as $value) {
             $configs = new ProductConfigurationProperties();
             $this->configurations[] = $configs->fromJsonElement($value);
         }
     }
     return $this;
 }
Example #3
0
 protected function fromJsonElement($elements)
 {
     parent::fromJsonElement($elements);
     if (!isset($elements->products)) {
         return $this;
     }
     unset($this->products);
     $this->products = [];
     foreach ($elements->products as $product) {
         $pProduct = new ProductProperties();
         $this->products[] = $pProduct->fromStdClass($product);
     }
     return $this;
 }
 public function fromStdClass($element)
 {
     parent::fromStdClass($element);
     // TODO: Change the autogenerated stub
     return $this;
 }