"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.instanceOfRoleAssignedObjectPermission = instanceOfRoleAssignedObjectPermission;
exports.RoleAssignedObjectPermissionFromJSON = RoleAssignedObjectPermissionFromJSON;
exports.RoleAssignedObjectPermissionFromJSONTyped = RoleAssignedObjectPermissionFromJSONTyped;
exports.RoleAssignedObjectPermissionToJSON = RoleAssignedObjectPermissionToJSON;
exports.RoleAssignedObjectPermissionToJSONTyped = RoleAssignedObjectPermissionToJSONTyped;
const RoleObjectPermission_1 = require("./RoleObjectPermission");
/**
 * Check if a given object implements the RoleAssignedObjectPermission interface.
 */
function instanceOfRoleAssignedObjectPermission(value) {
    if (!('rolePk' in value) || value['rolePk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('permissions' in value) || value['permissions'] === undefined)
        return false;
    return true;
}
function RoleAssignedObjectPermissionFromJSON(json) {
    return RoleAssignedObjectPermissionFromJSONTyped(json, false);
}
function RoleAssignedObjectPermissionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'rolePk': json['role_pk'],
        'name': json['name'],
        'permissions': (json['permissions'].map(RoleObjectPermission_1.RoleObjectPermissionFromJSON)),
    };
}
function RoleAssignedObjectPermissionToJSON(json) {
    return RoleAssignedObjectPermissionToJSONTyped(json, false);
}
function RoleAssignedObjectPermissionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'permissions': (value['permissions'].map(RoleObjectPermission_1.RoleObjectPermissionToJSON)),
    };
}
//# sourceMappingURL=RoleAssignedObjectPermission.js.map