"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfPatchedInitialPermissionsRequest = instanceOfPatchedInitialPermissionsRequest;
exports.PatchedInitialPermissionsRequestFromJSON = PatchedInitialPermissionsRequestFromJSON;
exports.PatchedInitialPermissionsRequestFromJSONTyped = PatchedInitialPermissionsRequestFromJSONTyped;
exports.PatchedInitialPermissionsRequestToJSON = PatchedInitialPermissionsRequestToJSON;
exports.PatchedInitialPermissionsRequestToJSONTyped = PatchedInitialPermissionsRequestToJSONTyped;
const InitialPermissionsModeEnum_1 = require("./InitialPermissionsModeEnum");
/**
 * Check if a given object implements the PatchedInitialPermissionsRequest interface.
 */
function instanceOfPatchedInitialPermissionsRequest(value) {
    return true;
}
function PatchedInitialPermissionsRequestFromJSON(json) {
    return PatchedInitialPermissionsRequestFromJSONTyped(json, false);
}
function PatchedInitialPermissionsRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'mode': json['mode'] == null ? undefined : (0, InitialPermissionsModeEnum_1.InitialPermissionsModeEnumFromJSON)(json['mode']),
        'role': json['role'] == null ? undefined : json['role'],
        'permissions': json['permissions'] == null ? undefined : json['permissions'],
    };
}
function PatchedInitialPermissionsRequestToJSON(json) {
    return PatchedInitialPermissionsRequestToJSONTyped(json, false);
}
function PatchedInitialPermissionsRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'mode': (0, InitialPermissionsModeEnum_1.InitialPermissionsModeEnumToJSON)(value['mode']),
        'role': value['role'],
        'permissions': value['permissions'],
    };
}
//# sourceMappingURL=PatchedInitialPermissionsRequest.js.map