'MaterialValue', 'bizType' => 'BizType', ]; public function validate() { Model::validateRequired('materialValue', $this->materialValue, true); } public function toMap() { $res = []; if (null !== $this->materialValue) { $res['MaterialValue'] = $this->materialValue; } if (null !== $this->bizType) { $res['BizType'] = $this->bizType; } return $res; } /** * @param array $map * * @return DetectFaceAttributesRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['MaterialValue'])) { $model->materialValue = $map['MaterialValue']; } if (isset($map['BizType'])) { $model->bizType = $map['BizType']; } return $model; } }