/* 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';
/**
 * RACPropertyMapping Serializer
 * @export
 * @interface PatchedRACPropertyMappingRequest
 */
export interface PatchedRACPropertyMappingRequest {
    /**
     * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
     * @type {string}
     * @memberof PatchedRACPropertyMappingRequest
     */
    managed?: string | null;
    /**
     * 
     * @type {string}
     * @memberof PatchedRACPropertyMappingRequest
     */
    name?: string;
    /**
     * 
     * @type {string}
     * @memberof PatchedRACPropertyMappingRequest
     */
    expression?: string;
    /**
     * 
     * @type {{ [key: string]: any; }}
     * @memberof PatchedRACPropertyMappingRequest
     */
    staticSettings?: { [key: string]: any; };
}

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

export function PatchedRACPropertyMappingRequestFromJSON(json: any): PatchedRACPropertyMappingRequest {
    return PatchedRACPropertyMappingRequestFromJSONTyped(json, false);
}

export function PatchedRACPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRACPropertyMappingRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'managed': json['managed'] == null ? undefined : json['managed'],
        'name': json['name'] == null ? undefined : json['name'],
        'expression': json['expression'] == null ? undefined : json['expression'],
        'staticSettings': json['static_settings'] == null ? undefined : json['static_settings'],
    };
}

export function PatchedRACPropertyMappingRequestToJSON(json: any): PatchedRACPropertyMappingRequest {
    return PatchedRACPropertyMappingRequestToJSONTyped(json, false);
}

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

    return {
        
        'managed': value['managed'],
        'name': value['name'],
        'expression': value['expression'],
        'static_settings': value['staticSettings'],
    };
}

