/* 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 PatchedExtraUserObjectPermissionRequest
 */
export interface PatchedExtraUserObjectPermissionRequest {
    /**
     * 
     * @type {string}
     * @memberof PatchedExtraUserObjectPermissionRequest
     */
    objectPk?: string;
}

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

export function PatchedExtraUserObjectPermissionRequestFromJSON(json: any): PatchedExtraUserObjectPermissionRequest {
    return PatchedExtraUserObjectPermissionRequestFromJSONTyped(json, false);
}

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

export function PatchedExtraUserObjectPermissionRequestToJSON(json: any): PatchedExtraUserObjectPermissionRequest {
    return PatchedExtraUserObjectPermissionRequestToJSONTyped(json, false);
}

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

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

