/* 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.
 */

/**
 * SCIMSourceGroup Serializer
 * @export
 * @interface PatchedSCIMSourceGroupRequest
 */
export interface PatchedSCIMSourceGroupRequest {
    /**
     *
     * @type {string}
     * @memberof PatchedSCIMSourceGroupRequest
     */
    id?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedSCIMSourceGroupRequest
     */
    externalId?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedSCIMSourceGroupRequest
     */
    group?: string;
    /**
     *
     * @type {string}
     * @memberof PatchedSCIMSourceGroupRequest
     */
    source?: string;
    /**
     *
     * @type {{ [key: string]: any; }}
     * @memberof PatchedSCIMSourceGroupRequest
     */
    attributes?: { [key: string]: any };
}

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

export function PatchedSCIMSourceGroupRequestFromJSON(json: any): PatchedSCIMSourceGroupRequest {
    return PatchedSCIMSourceGroupRequestFromJSONTyped(json, false);
}

export function PatchedSCIMSourceGroupRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedSCIMSourceGroupRequest {
    if (json == null) {
        return json;
    }
    return {
        id: json["id"] == null ? undefined : json["id"],
        externalId: json["external_id"] == null ? undefined : json["external_id"],
        group: json["group"] == null ? undefined : json["group"],
        source: json["source"] == null ? undefined : json["source"],
        attributes: json["attributes"] == null ? undefined : json["attributes"],
    };
}

export function PatchedSCIMSourceGroupRequestToJSON(json: any): PatchedSCIMSourceGroupRequest {
    return PatchedSCIMSourceGroupRequestToJSONTyped(json, false);
}

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

    return {
        id: value["id"],
        external_id: value["externalId"],
        group: value["group"],
        source: value["source"],
        attributes: value["attributes"],
    };
}
