in php/src/OSS/Config.php [149:222]
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['type'])) {
$model->type = $map['type'];
}
if (isset($map['securityToken'])) {
$model->securityToken = $map['securityToken'];
}
if (isset($map['accessKeyId'])) {
$model->accessKeyId = $map['accessKeyId'];
}
if (isset($map['accessKeySecret'])) {
$model->accessKeySecret = $map['accessKeySecret'];
}
if (isset($map['endpoint'])) {
$model->endpoint = $map['endpoint'];
}
if (isset($map['protocol'])) {
$model->protocol = $map['protocol'];
}
if (isset($map['regionId'])) {
$model->regionId = $map['regionId'];
}
if (isset($map['userAgent'])) {
$model->userAgent = $map['userAgent'];
}
if (isset($map['hostModel'])) {
$model->hostModel = $map['hostModel'];
}
if (isset($map['signatureVersion'])) {
$model->signatureVersion = $map['signatureVersion'];
}
if (isset($map['isEnableMD5'])) {
$model->isEnableMD5 = $map['isEnableMD5'];
}
if (isset($map['isEnableCrc'])) {
$model->isEnableCrc = $map['isEnableCrc'];
}
if (isset($map['readTimeout'])) {
$model->readTimeout = $map['readTimeout'];
}
if (isset($map['connectTimeout'])) {
$model->connectTimeout = $map['connectTimeout'];
}
if (isset($map['localAddr'])) {
$model->localAddr = $map['localAddr'];
}
if (isset($map['httpProxy'])) {
$model->httpProxy = $map['httpProxy'];
}
if (isset($map['httpsProxy'])) {
$model->httpsProxy = $map['httpsProxy'];
}
if (isset($map['noProxy'])) {
$model->noProxy = $map['noProxy'];
}
if (isset($map['socks5Proxy'])) {
$model->socks5Proxy = $map['socks5Proxy'];
}
if (isset($map['socks5NetWork'])) {
$model->socks5NetWork = $map['socks5NetWork'];
}
if (isset($map['maxIdleConns'])) {
$model->maxIdleConns = $map['maxIdleConns'];
}
if (isset($map['addtionalHeaders'])) {
if (!empty($map['addtionalHeaders'])) {
$model->addtionalHeaders = $map['addtionalHeaders'];
}
}
return $model;
}