public function map($json,&$resultObject)
    {
        if ($this->RootElement && property_exists($json, $this->RootElement)) {
            $json = $json->{$this->RootElement};
            $this->RootElement = null;
        }

        if ($resultObject instanceof IEntityType) {
            if ($resultObject instanceof IEntityTypeCollection)
                $this->mapTypeCollection($json, $resultObject);
            else
                $this->mapType($json, $resultObject);
        }
        else
            $resultObject = $json;

    }
public function map($json,&$resultObject)
    {
        if ($this->RootElement && property_exists($json, $this->RootElement)) {
            $json = $json->{$this->RootElement};
            $this->RootElement = null;
        }

        if ($resultObject instanceof IEntityType) {
            if ($resultObject instanceof IEntityTypeCollection)
                $this->mapTypeCollection($json, $resultObject);
            else
                $this->mapType($json, $resultObject);
        }
        else
            $resultObject = $json;

    }
public function map ( $ json , & $ resultObject ) { if ( $ this -> RootElement && property_exists ( $ json , $ this -> RootElement ) ) { $ json = $ json -> { $ this -> RootElement } ; $ this -> RootElement = null ; } if ( $ resultObject instanceof IEntityType ) { if ( $ resultObject instanceof IEntityTypeCollection ) $ this -> mapTypeCollection ( $ json , $ resultObject ) ; else $ this -> mapType ( $ json , $ resultObject ) ; } else $ resultObject = $ json ; }
Maps response payload to client object
@param mixed $json
@param $resultObject
Maps response payload to client object