public static function batchesPage($json)
    {
        $fields = Deserialize::_fromJson($json);

        $result = new Api\Page();
        $result->setPage($fields->page);
        $result->setSize($fields->page_size);
        $result->setTotalSize($fields->count);
        $result->setContent(
            array_map(
                function ($s) use ($json) {
                    return Deserialize::_batchResponseFromFields($json, $s);
                },
                $fields->batches
            )
        );

        return $result;
    }
public static function batchesPage($json)
    {
        $fields = Deserialize::_fromJson($json);

        $result = new Api\Page();
        $result->setPage($fields->page);
        $result->setSize($fields->page_size);
        $result->setTotalSize($fields->count);
        $result->setContent(
            array_map(
                function ($s) use ($json) {
                    return Deserialize::_batchResponseFromFields($json, $s);
                },
                $fields->batches
            )
        );

        return $result;
    }
public static function batchesPage ( $ json ) { $ fields = Deserialize :: _fromJson ( $ json ) ; $ result = new Api \ Page ( ) ; $ result -> setPage ( $ fields -> page ) ; $ result -> setSize ( $ fields -> page_size ) ; $ result -> setTotalSize ( $ fields -> count ) ; $ result -> setContent ( array_map ( function ( $ s ) use ( $ json ) { return Deserialize :: _batchResponseFromFields ( $ json , $ s ) ; } , $ fields -> batches ) ) ; return $ result ; }
Reads a JSON blob describing a page of batches.

@param string $json the JSON text

@return Api\Page the parsed page

@throws UnexpectedResponseException if the JSON contained an
unexpected message type
Reads a JSON blob describing a page of batches .