/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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.
 */

/**
 * Result from assigning permissions to a user/role
 * @export
 * @interface PermissionAssignResult
 */
export interface PermissionAssignResult {
    /**
     *
     * @type {string}
     * @memberof PermissionAssignResult
     */
    id: string;
}

/**
 * Check if a given object implements the PermissionAssignResult interface.
 */
export function instanceOfPermissionAssignResult(value: object): value is PermissionAssignResult {
    if (!("id" in value) || value["id"] === undefined) return false;
    return true;
}

export function PermissionAssignResultFromJSON(json: any): PermissionAssignResult {
    return PermissionAssignResultFromJSONTyped(json, false);
}

export function PermissionAssignResultFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PermissionAssignResult {
    if (json == null) {
        return json;
    }
    return {
        id: json["id"],
    };
}

export function PermissionAssignResultToJSON(json: any): PermissionAssignResult {
    return PermissionAssignResultToJSONTyped(json, false);
}

export function PermissionAssignResultToJSONTyped(
    value?: PermissionAssignResult | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {
        id: value["id"],
    };
}
