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

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

/**
 * Check if a given object implements the ExtraUserObjectPermissionRequest interface.
 */
export function instanceOfExtraUserObjectPermissionRequest(value: object): value is ExtraUserObjectPermissionRequest {
    if (!('objectPk' in value) || value['objectPk'] === undefined) return false;
    return true;
}

export function ExtraUserObjectPermissionRequestFromJSON(json: any): ExtraUserObjectPermissionRequest {
    return ExtraUserObjectPermissionRequestFromJSONTyped(json, false);
}

export function ExtraUserObjectPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtraUserObjectPermissionRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'objectPk': json['object_pk'],
    };
}

export function ExtraUserObjectPermissionRequestToJSON(json: any): ExtraUserObjectPermissionRequest {
    return ExtraUserObjectPermissionRequestToJSONTyped(json, false);
}

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

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

