public static function inboundsPage($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) {
                    return Deserialize::_moSmsFromFields($json, $s);
                },
                $fields->inbounds
            )
        );

        return $result;
    }
public static function inboundsPage($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) {
                    return Deserialize::_moSmsFromFields($json, $s);
                },
                $fields->inbounds
            )
        );

        return $result;
    }
public static function inboundsPage ( $ 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 ) { return Deserialize :: _moSmsFromFields ( $ json , $ s ) ; } , $ fields -> inbounds ) ) ; return $ result ; }
Reads a JSON blob describing a page of MO messages.

@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 MO messages .