/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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.
 */

/**
 * Preview how the current user is mapped via the property mappings selected in a provider
 * @export
 * @interface PropertyMappingPreview
 */
export interface PropertyMappingPreview {
    /**
     *
     * @type {{ [key: string]: any; }}
     * @memberof PropertyMappingPreview
     */
    readonly preview: { [key: string]: any };
}

/**
 * Check if a given object implements the PropertyMappingPreview interface.
 */
export function instanceOfPropertyMappingPreview(value: object): value is PropertyMappingPreview {
    if (!("preview" in value) || value["preview"] === undefined) return false;
    return true;
}

export function PropertyMappingPreviewFromJSON(json: any): PropertyMappingPreview {
    return PropertyMappingPreviewFromJSONTyped(json, false);
}

export function PropertyMappingPreviewFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PropertyMappingPreview {
    if (json == null) {
        return json;
    }
    return {
        preview: json["preview"],
    };
}

export function PropertyMappingPreviewToJSON(json: any): PropertyMappingPreview {
    return PropertyMappingPreviewToJSONTyped(json, false);
}

export function PropertyMappingPreviewToJSONTyped(
    value?: Omit<PropertyMappingPreview, "preview"> | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {};
}
