def METHOD_NAME(self, page: Page, schema: ModelSchema) -> dict:
    """
    Dump based on the request context (to paginate or not)
    Parameters
    ----------
    page : Page
        Page object to dump
    schema : ModelSchema
        Schema to use for dumping
    Returns
    -------
    dict
        Dumped page
    """
    if self.is_included('metadata'):
        return schema.meta_dump(page)
    else:
        return schema.default_dump(page)