"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPagination = instanceOfPagination;
exports.PaginationFromJSON = PaginationFromJSON;
exports.PaginationFromJSONTyped = PaginationFromJSONTyped;
exports.PaginationToJSON = PaginationToJSON;
exports.PaginationToJSONTyped = PaginationToJSONTyped;
/**
 * Check if a given object implements the Pagination interface.
 */
function instanceOfPagination(value) {
    if (!('next' in value) || value['next'] === undefined)
        return false;
    if (!('previous' in value) || value['previous'] === undefined)
        return false;
    if (!('count' in value) || value['count'] === undefined)
        return false;
    if (!('current' in value) || value['current'] === undefined)
        return false;
    if (!('totalPages' in value) || value['totalPages'] === undefined)
        return false;
    if (!('startIndex' in value) || value['startIndex'] === undefined)
        return false;
    if (!('endIndex' in value) || value['endIndex'] === undefined)
        return false;
    return true;
}
function PaginationFromJSON(json) {
    return PaginationFromJSONTyped(json, false);
}
function PaginationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'next': json['next'],
        'previous': json['previous'],
        'count': json['count'],
        'current': json['current'],
        'totalPages': json['total_pages'],
        'startIndex': json['start_index'],
        'endIndex': json['end_index'],
    };
}
function PaginationToJSON(json) {
    return PaginationToJSONTyped(json, false);
}
function PaginationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'next': value['next'],
        'previous': value['previous'],
        'count': value['count'],
        'current': value['current'],
        'total_pages': value['totalPages'],
        'start_index': value['startIndex'],
        'end_index': value['endIndex'],
    };
}
//# sourceMappingURL=Pagination.js.map