public function fromArray(array $data)
    {
        $map = array(
            'id' => 'setId',
            'name' => 'setName',
            'source_type' => 'setSourceType',
            'status' => 'setStatus',
            'parameters' => 'setParameters',
            'auth' => 'setAuth',
            'resources' => 'setResources',
            'created_at' => 'setCreatedAt',
            'validate' => 'setValidate'
        );

        foreach ($map as $key => $setter) {
            if (isset($data[$key])) {
                $this->$setter($data[$key]);
            }
        }

        return $this;
    }