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

/**
 * Check if a given object implements the SCIMSourceGroupRequest interface.
 */
export function instanceOfSCIMSourceGroupRequest(value: object): value is SCIMSourceGroupRequest {
    if (!('externalId' in value) || value['externalId'] === undefined) return false;
    if (!('group' in value) || value['group'] === undefined) return false;
    if (!('source' in value) || value['source'] === undefined) return false;
    return true;
}

export function SCIMSourceGroupRequestFromJSON(json: any): SCIMSourceGroupRequest {
    return SCIMSourceGroupRequestFromJSONTyped(json, false);
}

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

export function SCIMSourceGroupRequestToJSON(json: any): SCIMSourceGroupRequest {
    return SCIMSourceGroupRequestToJSONTyped(json, false);
}

export function SCIMSourceGroupRequestToJSONTyped(value?: SCIMSourceGroupRequest | 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'],
    };
}

