src/Extractor/JsonApiExtractor.php
protected function extractOne(array $json, array $data)
    {
        if ($this->dataHasType($data)) {
            return $this->createInstanceWithRelations($json, $data);
        }
        throw new JsonApiExtractException('No data type provided');
    }
protected function extractOne(array $json, array $data)
    {
        if ($this->dataHasType($data)) {
            return $this->createInstanceWithRelations($json, $data);
        }
        throw new JsonApiExtractException('No data type provided');
    }
protected function extractOne ( array $ json , array $ data ) { if ( $ this -> dataHasType ( $ data ) ) { return $ this -> createInstanceWithRelations ( $ json , $ data ) ; } throw new JsonApiExtractException ( 'No data type provided' ) ; }
Extract an entity from data

@param array $json
@param array $data

@return array|EntityInterface
@throws JsonApiExtractException
Extract an entity from data