"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.instanceOfPermissionAssignRequest = instanceOfPermissionAssignRequest;
exports.PermissionAssignRequestFromJSON = PermissionAssignRequestFromJSON;
exports.PermissionAssignRequestFromJSONTyped = PermissionAssignRequestFromJSONTyped;
exports.PermissionAssignRequestToJSON = PermissionAssignRequestToJSON;
exports.PermissionAssignRequestToJSONTyped = PermissionAssignRequestToJSONTyped;
const ModelEnum_1 = require("./ModelEnum");
/**
 * Check if a given object implements the PermissionAssignRequest interface.
 */
function instanceOfPermissionAssignRequest(value) {
    if (!('permissions' in value) || value['permissions'] === undefined)
        return false;
    return true;
}
function PermissionAssignRequestFromJSON(json) {
    return PermissionAssignRequestFromJSONTyped(json, false);
}
function PermissionAssignRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'permissions': json['permissions'],
        'model': json['model'] == null ? undefined : (0, ModelEnum_1.ModelEnumFromJSON)(json['model']),
        'objectPk': json['object_pk'] == null ? undefined : json['object_pk'],
    };
}
function PermissionAssignRequestToJSON(json) {
    return PermissionAssignRequestToJSONTyped(json, false);
}
function PermissionAssignRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'permissions': value['permissions'],
        'model': (0, ModelEnum_1.ModelEnumToJSON)(value['model']),
        'object_pk': value['objectPk'],
    };
}
//# sourceMappingURL=PermissionAssignRequest.js.map