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