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

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

export function ExtraRoleObjectPermissionRequestFromJSON(json: any): ExtraRoleObjectPermissionRequest {
    return ExtraRoleObjectPermissionRequestFromJSONTyped(json, false);
}

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

export function ExtraRoleObjectPermissionRequestToJSON(json: any): ExtraRoleObjectPermissionRequest {
    return ExtraRoleObjectPermissionRequestToJSONTyped(json, false);
}

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

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

