src/MediaServices/Models/ErrorDetail.php
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'];
        }
    }
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'];
        }
    }
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' ] ; } }
Fill error detail from array.

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