Converts specified value into PagingParams.

        :param value: value to be converted

        :return: a newly created PagingParams.

def from_value(value):
        """
        Converts specified value into PagingParams.

        :param value: value to be converted

        :return: a newly created PagingParams.
        """
        if isinstance(value, PagingParams):
            return value
        if isinstance(value, AnyValueMap):
            return PagingParams.from_map(value)
        
        map = AnyValueMap.from_value(value)
        return PagingParams.from_map(map)