src/ApiResponse.php
public function clean($keys = [])
    {
        if (is_null($keys)) {
            $this->cleanKeys = null;

            return $this;
        }

        $this->cleanKeys = is_array($keys) ? $keys : func_get_args();

        return $this->setData($this->getData(true));
    }
public function clean($keys = [])
    {
        if (is_null($keys)) {
            $this->cleanKeys = null;

            return $this;
        }

        $this->cleanKeys = is_array($keys) ? $keys : func_get_args();

        return $this->setData($this->getData(true));
    }
Set the keys which value should be clean, then clean data.
The passed $keys can be "dot" notation.

$keys example:

null             -> do not clean anything
[]               -> clean values associated with all root keys
'foo', 'foo.bar' -> clean values associated with 'foo' and 'foo'>'bar'
['foo', 'foo.bar']

@param  string|null|string[]  $keys
@return $this