public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
 }
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->id)) {
         $this->id = (int) $xml->id;
     }
     if (count($xml->createdAt)) {
         $this->createdAt = (int) $xml->createdAt;
     }
     if (count($xml->updatedAt)) {
         $this->updatedAt = (int) $xml->updatedAt;
     }
     if (count($xml->partnerId)) {
         $this->partnerId = (int) $xml->partnerId;
     }
     if (!empty($xml->isDefault)) {
         $this->isDefault = true;
     }
     if (count($xml->status)) {
         $this->status = (int) $xml->status;
     }
     $this->optionalFlavorParamsIds = (string) $xml->optionalFlavorParamsIds;
     $this->requiredFlavorParamsIds = (string) $xml->requiredFlavorParamsIds;
     if (empty($xml->optionalThumbDimensions)) {
         $this->optionalThumbDimensions = array();
     } else {
         $this->optionalThumbDimensions = \Kaltura\Client\ParseUtils::unmarshalArray($xml->optionalThumbDimensions, "KalturaDistributionThumbDimensions");
     }
     if (empty($xml->requiredThumbDimensions)) {
         $this->requiredThumbDimensions = array();
     } else {
         $this->requiredThumbDimensions = \Kaltura\Client\ParseUtils::unmarshalArray($xml->requiredThumbDimensions, "KalturaDistributionThumbDimensions");
     }
     $this->editableFields = (string) $xml->editableFields;
     $this->mandatoryFields = (string) $xml->mandatoryFields;
 }