"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.instanceOfPaginatedRoleList = instanceOfPaginatedRoleList;
exports.PaginatedRoleListFromJSON = PaginatedRoleListFromJSON;
exports.PaginatedRoleListFromJSONTyped = PaginatedRoleListFromJSONTyped;
exports.PaginatedRoleListToJSON = PaginatedRoleListToJSON;
exports.PaginatedRoleListToJSONTyped = PaginatedRoleListToJSONTyped;
const Role_1 = require("./Role");
const Pagination_1 = require("./Pagination");
/**
 * Check if a given object implements the PaginatedRoleList interface.
 */
function instanceOfPaginatedRoleList(value) {
    if (!('pagination' in value) || value['pagination'] === undefined)
        return false;
    if (!('results' in value) || value['results'] === undefined)
        return false;
    if (!('autocomplete' in value) || value['autocomplete'] === undefined)
        return false;
    return true;
}
function PaginatedRoleListFromJSON(json) {
    return PaginatedRoleListFromJSONTyped(json, false);
}
function PaginatedRoleListFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
        'results': (json['results'].map(Role_1.RoleFromJSON)),
        'autocomplete': json['autocomplete'],
    };
}
function PaginatedRoleListToJSON(json) {
    return PaginatedRoleListToJSONTyped(json, false);
}
function PaginatedRoleListToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'pagination': (0, Pagination_1.PaginationToJSON)(value['pagination']),
        'results': (value['results'].map(Role_1.RoleToJSON)),
        'autocomplete': value['autocomplete'],
    };
}
//# sourceMappingURL=PaginatedRoleList.js.map