src/MediaServices/Models/ChannelSlate.php
public function fromArray($options)
    {
        if (isset($options['InsertSlateOnAdMarker'])) {
            Validate::isBoolean($options['InsertSlateOnAdMarker'], 'options[InsertSlateOnAdMarker]');
            $this->_insertSlateOnAdMarker = (bool) $options['InsertSlateOnAdMarker'];
        }

        if (isset($options['DefaultSlateAssetId'])) {
            Validate::isString($options['DefaultSlateAssetId'], 'options[DefaultSlateAssetIdUrl]');
            $this->_defaultSlateAssetId = $options['DefaultSlateAssetId'];
        }
    }
public function fromArray($options)
    {
        if (isset($options['InsertSlateOnAdMarker'])) {
            Validate::isBoolean($options['InsertSlateOnAdMarker'], 'options[InsertSlateOnAdMarker]');
            $this->_insertSlateOnAdMarker = (bool) $options['InsertSlateOnAdMarker'];
        }

        if (isset($options['DefaultSlateAssetId'])) {
            Validate::isString($options['DefaultSlateAssetId'], 'options[DefaultSlateAssetIdUrl]');
            $this->_defaultSlateAssetId = $options['DefaultSlateAssetId'];
        }
    }
public function fromArray ( $ options ) { if ( isset ( $ options [ 'InsertSlateOnAdMarker' ] ) ) { Validate :: isBoolean ( $ options [ 'InsertSlateOnAdMarker' ] , 'options[InsertSlateOnAdMarker]' ) ; $ this -> _insertSlateOnAdMarker = ( bool ) $ options [ 'InsertSlateOnAdMarker' ] ; } if ( isset ( $ options [ 'DefaultSlateAssetId' ] ) ) { Validate :: isString ( $ options [ 'DefaultSlateAssetId' ] , 'options[DefaultSlateAssetIdUrl]' ) ; $ this -> _defaultSlateAssetId = $ options [ 'DefaultSlateAssetId' ] ; } }
Fill ChannelSlate from array.

@param array $options Array containing values for object properties
Fill ChannelSlate from array .