public function fromArray($data)
    {
        foreach ($data as $param => $value) {
            if (!method_exists($this, 'set' . ucfirst($param))) {
                continue;
            }
            $this->{'set' . ucfirst($param)}($value);
        }
        return $this;
    }
public function fromArray($data)
    {
        foreach ($data as $param => $value) {
            if (!method_exists($this, 'set' . ucfirst($param))) {
                continue;
            }
            $this->{'set' . ucfirst($param)}($value);
        }
        return $this;
    }
public function fromArray ( $ data ) { foreach ( $ data as $ param => $ value ) { if ( ! method_exists ( $ this , 'set' . ucfirst ( $ param ) ) ) { continue ; } $ this -> { 'set' . ucfirst ( $ param ) } ( $ value ) ; } return $ this ; }
Converts array to response model

@param array $data

@return $this
Converts array to response model