Fill ChannelSlate from array.

@param array $options Array containing values for object properties
975098
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'];
        }
    }
326315
public function options($options = [])
    {
        if ($options instanceof Arrayable) {
            $options = $options->toArray();
        }

        $this->options = array_merge($this->options, $options);

        return $this;
    }
1041791
public function loadConfig(array $options)
    {
        foreach (self::$AVAILABLE_OPTIONS as $option) {
            if (isset($options[$option])) {
                $method = 'set' . \ucfirst($option);
                $this->$method($options[$option]);
            }
        }

        // legacy `tabCompletion` option
        if (isset($options['tabCompletion'])) {
            $msg = '`tabCompletion` is deprecated; use `useTabCompletion` instead.';
            @\trigger_error($msg, E_USER_DEPRECATED);

            $this->setUseTabCompletion($options['tabCompletion']);
        }

        foreach (['commands', 'matchers', 'casters'] as $option) {
            if (isset($options[$option])) {
                $method = 'add' . \ucfirst($option);
                $this->$method($options[$option]);
            }
        }

        // legacy `tabCompletionMatchers` option
        if (isset($options['tabCompletionMatchers'])) {
            $msg = '`tabCompletionMatchers` is deprecated; use `matchers` instead.';
            @\trigger_error($msg, E_USER_DEPRECATED);

            $this->addMatchers($options['tabCompletionMatchers']);
        }
    }
879874
public function setOptions(array $options)
    {
        foreach ($options as $option => $value) {
            $methodName = 'set'.ucfirst($option);
            if (method_exists($this, $methodName)) {
                $this->$methodName($value);
            }
        }
    }
733386
public function fromArray($options)
    {
        if (isset($options['Name'])) {
            Validate::isString($options['Name'], 'options[Name]');
            $this->_name = $options['Name'];
        }

        if (isset($options['Address'])) {
            Validate::isString($options['Address'], 'options[Address]');
            $this->_address = $options['Address'];
        }

        if (isset($options['SubnetPrefixLength'])) {
            Validate::isString($options['SubnetPrefixLength'], 'options[SubnetPrefixLength]');
            $this->_subnetPrefixLength = $options['SubnetPrefixLength'];
        }
    }
397910
public function fill(array $values)
	{
		foreach ($values as $key => $value)
		{
			callback($this, 'fill' . ucfirst($key))->invoke($value);
		}
		return $this;
	}
1154351
public function fill(array $properties)
    {
        foreach ($properties as $key => $value)
        {
            $this->setAttribute($key, $value);
        }

        return $this;
    }
140055
protected function fillOptions($options): void
    {
        $this->uri = $options['uri'] ?? '/';
        $this->namespace = $options['namespace'] ?? config('jsonrpc.controllerNamespace', 'App\\Http\\Controllers\\Api\\');
        $this->postfix = $options['postfix'] ?? config('jsonrpc.controllerPostfix', 'Controller');
        $this->description = $options['description'] ?? config('jsonrpc.description', 'JsonRpc Server');
        $this->controller = $options['controller'] ?? config('jsonrpc.defaultController', 'Api');
        $this->middleware = $options['middleware'] ?? config('jsonrpc.middleware', [MethodClosureMiddleware::class]);
        $this->acl = $options['acl'] ?? config('jsonrpc.acl', []);
        $this->auth = $options['auth'] ?? config('jsonrpc.authValidate', true);
        $this->handlers = $options['handlers'] ?? config('jsonrpc.handlers', self::DEFAULT_HANDLERS);
        $this->endpoint = $options['endpoint'] ?? null;
        $this->action = $options['action'] ?? null;
    }
229803
public function setOptions(array $options)
    {
        foreach ($options as $key => $value) {
            $this->options[$key] = $value;
            $value && $this->object->$key = $value;
        }

        return $this;
    }
585793
public function setOptions(array $options)
    {
        if ($this->options && is_array($options)) {
            $options = ArrayUtils::merge($this->options, $options);
        }

        $this->options = $options;

        return $this;
    }
1168720
public function setOptions($options = [])
    {
        if (!is_array($options)) {
            $options = [];
        }

        $this->options = array_merge($this->getDefaults(), $options);
        return $this;
    }
1048122
public function setOptions(array $options)
    {
        if ($options) {
            foreach ($options as $k => $v) {
                $this->options[$k] = $v;
            }
        }
        
        static::formatName();
        
        return $this;
    }
1213126
public function fromArray(array $options)
    {
        if (isset($options['Code'])) {
            Validate::isInteger($options['Code'], 'options[Code]');
            $this->_code = $options['Code'];
        }

        if (isset($options['Message'])) {
            Validate::isString($options['Message'], 'options[Message]');
            $this->_message = $options['Message'];
        }

        if (isset($options['TimeStamp'])) {
            Validate::isDateString($options['TimeStamp'], 'options[TimeStamp]');
            $this->_timeStamp = new \DateTime($options['TimeStamp']);
        }
    }
376195
public function fromArray($options)
    {
        if (isset($options['Id'])) {
            Validate::isString($options['Id'], 'options[Id]');
            $this->_id = $options['Id'];
        }

        if (isset($options['Name'])) {
            Validate::isString($options['Name'], 'options[Name]');
            $this->_name = $options['Name'];
        }

        if (isset($options['KeyDeliveryType'])) {
            Validate::isInteger($options['KeyDeliveryType'], 'options[KeyDeliveryType]');
            $this->_keyDeliveryType = $options['KeyDeliveryType'];
        }

        if (isset($options['KeyDeliveryConfiguration'])) {
            Validate::isString($options['KeyDeliveryConfiguration'], 'options[KeyDeliveryConfiguration]');
            $this->_keyDeliveryConfiguration = $options['KeyDeliveryConfiguration'];
        }

        if (!empty($options['Restrictions'])) {
            Validate::isArray($options['Restrictions'], 'options[Restrictions]');
            foreach ($options['Restrictions'] as $restriction) {
                $this->_restrictions[] = ContentKeyAuthorizationPolicyRestriction::createFromOptions($restriction);
            }
        }
    }
908431
public function setOptions(array $options)
    {
        foreach ($options as $index=>$val) {
            if (property_exists($this, $index)) {
                $this->{$index} = $val;
            }
        }
        return $this;
    }
1350084
function setExtends($options)
    {
        foreach ($options as $key => $v) {
            if (!is_int($key))
                $v = array($key => $v);

            $this->addExtend($v);
        }


        return $this;
    }
26076
public function fromArray(array $options)
    {
        if (isset($options['Id'])) {
            Validate::isString($options['Id'], 'options[Id]');
            $this->_id = $options['Id'];
        }

        if (isset($options['Configuration'])) {
            Validate::isString($options['Configuration'], 'options[Configuration]');
            $this->_configuration = $options['Configuration'];
        }

        if (isset($options['EndTime'])) {
            Validate::isDateString($options['EndTime'], 'options[EndTime]');
            $this->_endTime = new \DateTime($options['EndTime']);
        }

        if (isset($options['MediaProcessorId'])) {
            Validate::isString(
                $options['MediaProcessorId'],
                'options[MediaProcessorId]'
            );
            $this->_mediaProcessorId = $options['MediaProcessorId'];
        }

        if (isset($options['Name'])) {
            Validate::isString($options['Name'], 'options[Name]');
            $this->_name = $options['Name'];
        }

        if (isset($options['PerfMessage'])) {
            Validate::isString($options['PerfMessage'], 'options[PerfMessage]');
            $this->_perfMessage = $options['PerfMessage'];
        }

        if (isset($options['Priority'])) {
            Validate::isInteger($options['Priority'], 'options[Priority]');
            $this->_priority = $options['Priority'];
        }

        if (isset($options['Progress'])) {
            Validate::isDouble($options['Progress'], 'options[Progress]');
            $this->_progress = $options['Progress'];
        }

        if (isset($options['RunningDuration'])) {
            Validate::isDouble(
                $options['RunningDuration'],
                'options[RunningDuration]'
            );
            $this->_runningDuration = $options['RunningDuration'];
        }

        if (isset($options['StartTime'])) {
            Validate::isDateString($options['StartTime'], 'options[StartTime]');
            $this->_startTime = new \DateTime($options['StartTime']);
        }

        if (isset($options['State'])) {
            Validate::isInteger($options['State'], 'options[State]');
            $this->_state = $options['State'];
        }

        if (isset($options['TaskBody'])) {
            Validate::isString($options['TaskBody'], 'options[TaskBody]');
            $this->_taskBody = $options['TaskBody'];
        }

        if (isset($options['Options'])) {
            Validate::isInteger($options['Options'], 'options[Options]');
            $this->_options = $options['Options'];
        }

        if (isset($options['EncryptionKeyId'])) {
            Validate::isString(
                $options['EncryptionKeyId'],
                'options[EncryptionKeyId]'
            );
            $this->_encryptionKeyId = $options['EncryptionKeyId'];
        }

        if (isset($options['EncryptionScheme'])) {
            Validate::isString(
                $options['EncryptionScheme'],
                'options[EncryptionScheme]'
            );
            $this->_encryptionScheme = $options['EncryptionScheme'];
        }

        if (isset($options['EncryptionVersion'])) {
            Validate::isString(
                $options['EncryptionVersion'],
                'options[EncryptionVersion]'
            );
            $this->_encryptionVersion = $options['EncryptionVersion'];
        }

        if (isset($options['InitializationVector'])) {
            Validate::isString(
                $options['InitializationVector'],
                'options[InitializationVector]'
            );
            $this->_initializationVector = $options['InitializationVector'];
        }

        if (isset($options['ErrorDetails'])) {
            $this->_errorDetails = [];
            if (is_array($options['ErrorDetails'])) {
                foreach ($options['ErrorDetails'] as $errorDetail) {
                    $this->_errorDetails[] = ErrorDetail::createFromOptions(
                        $errorDetail
                    );
                }
            }
        }

        if (isset($options['HistoricalEvents'])) {
            $this->_historicalEvents = [];
            if (is_array($options['HistoricalEvents'])) {
                foreach ($options['HistoricalEvents'] as $historicalEvent) {
                    $evnt = TaskHistoricalEvent::createFromOptions($historicalEvent);

                    $this->_historicalEvents[] = $evnt;
                }
            }
        }
    }