/* 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';
/**
 * SCIMProviderUser Serializer
 * @export
 * @interface SCIMProviderUserRequest
 */
export interface SCIMProviderUserRequest {
    /**
     * 
     * @type {string}
     * @memberof SCIMProviderUserRequest
     */
    scimId: string;
    /**
     * 
     * @type {number}
     * @memberof SCIMProviderUserRequest
     */
    user: number;
    /**
     * 
     * @type {number}
     * @memberof SCIMProviderUserRequest
     */
    provider: number;
}

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

export function SCIMProviderUserRequestFromJSON(json: any): SCIMProviderUserRequest {
    return SCIMProviderUserRequestFromJSONTyped(json, false);
}

export function SCIMProviderUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMProviderUserRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'scimId': json['scim_id'],
        'user': json['user'],
        'provider': json['provider'],
    };
}

export function SCIMProviderUserRequestToJSON(json: any): SCIMProviderUserRequest {
    return SCIMProviderUserRequestToJSONTyped(json, false);
}

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

    return {
        
        'scim_id': value['scimId'],
        'user': value['user'],
        'provider': value['provider'],
    };
}

