/* 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.
 */

import { mapValues } from '../runtime';
/**
 * User permission with additional object-related data
 * @export
 * @interface PatchedExtraRoleObjectPermissionRequest
 */
export interface PatchedExtraRoleObjectPermissionRequest {
    /**
     * 
     * @type {string}
     * @memberof PatchedExtraRoleObjectPermissionRequest
     */
    objectPk?: string;
}

/**
 * Check if a given object implements the PatchedExtraRoleObjectPermissionRequest interface.
 */
export function instanceOfPatchedExtraRoleObjectPermissionRequest(value: object): value is PatchedExtraRoleObjectPermissionRequest {
    return true;
}

export function PatchedExtraRoleObjectPermissionRequestFromJSON(json: any): PatchedExtraRoleObjectPermissionRequest {
    return PatchedExtraRoleObjectPermissionRequestFromJSONTyped(json, false);
}

export function PatchedExtraRoleObjectPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedExtraRoleObjectPermissionRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'objectPk': json['object_pk'] == null ? undefined : json['object_pk'],
    };
}

export function PatchedExtraRoleObjectPermissionRequestToJSON(json: any): PatchedExtraRoleObjectPermissionRequest {
    return PatchedExtraRoleObjectPermissionRequestToJSONTyped(json, false);
}

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

    return {
        
        'object_pk': value['objectPk'],
    };
}

