src/MediaServices/Models/JobTemplate.php
public static function createFromOptions(array $options)
    {
        Validate::notNull($options['JobTemplateBody'], 'options[JobTemplateBody]');

        $jobTemplate = new self(
            $options['JobTemplateBody'],
            $options['TemplateType']
        );
        $jobTemplate->fromArray($options);

        return $jobTemplate;
    }
public static function createFromOptions(array $options)
    {
        Validate::notNull($options['JobTemplateBody'], 'options[JobTemplateBody]');

        $jobTemplate = new self(
            $options['JobTemplateBody'],
            $options['TemplateType']
        );
        $jobTemplate->fromArray($options);

        return $jobTemplate;
    }
public static function createFromOptions ( array $ options ) { Validate :: notNull ( $ options [ 'JobTemplateBody' ] , 'options[JobTemplateBody]' ) ; $ jobTemplate = new self ( $ options [ 'JobTemplateBody' ] , $ options [ 'TemplateType' ] ) ; $ jobTemplate -> fromArray ( $ options ) ; return $ jobTemplate ; }
Create asset from array.

@param array $options Array containing values for object properties

@return JobTemplate
Create asset from array .