/* 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';
/**
 * SCIMSourceUser Serializer
 * @export
 * @interface PatchedSCIMSourceUserRequest
 */
export interface PatchedSCIMSourceUserRequest {
    /**
     * 
     * @type {string}
     * @memberof PatchedSCIMSourceUserRequest
     */
    id?: string;
    /**
     * 
     * @type {string}
     * @memberof PatchedSCIMSourceUserRequest
     */
    externalId?: string;
    /**
     * 
     * @type {number}
     * @memberof PatchedSCIMSourceUserRequest
     */
    user?: number;
    /**
     * 
     * @type {string}
     * @memberof PatchedSCIMSourceUserRequest
     */
    source?: string;
    /**
     * 
     * @type {{ [key: string]: any; }}
     * @memberof PatchedSCIMSourceUserRequest
     */
    attributes?: { [key: string]: any; };
}

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

export function PatchedSCIMSourceUserRequestFromJSON(json: any): PatchedSCIMSourceUserRequest {
    return PatchedSCIMSourceUserRequestFromJSONTyped(json, false);
}

export function PatchedSCIMSourceUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSCIMSourceUserRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'] == null ? undefined : json['id'],
        'externalId': json['external_id'] == null ? undefined : json['external_id'],
        'user': json['user'] == null ? undefined : json['user'],
        'source': json['source'] == null ? undefined : json['source'],
        'attributes': json['attributes'] == null ? undefined : json['attributes'],
    };
}

export function PatchedSCIMSourceUserRequestToJSON(json: any): PatchedSCIMSourceUserRequest {
    return PatchedSCIMSourceUserRequestToJSONTyped(json, false);
}

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

    return {
        
        'id': value['id'],
        'external_id': value['externalId'],
        'user': value['user'],
        'source': value['source'],
        'attributes': value['attributes'],
    };
}

