export class TablePagination {
  descending?: boolean;
  page: number;
  rowsNumber?: number;
  rowsPerPage: number;
  sortBy?: (string | null) | (string | null)[];

  constructor(args: Partial<TablePagination> = {}) {
    this.descending = args?.descending ?? false;
    this.page = args?.page ?? 1;
    this.rowsPerPage = args?.rowsPerPage ?? 10;
    this.rowsNumber = args?.rowsNumber ?? 0;
    this.sortBy = args?.sortBy ?? null;
  }
}
