"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfSCIMSourceGroup = instanceOfSCIMSourceGroup;
exports.SCIMSourceGroupFromJSON = SCIMSourceGroupFromJSON;
exports.SCIMSourceGroupFromJSONTyped = SCIMSourceGroupFromJSONTyped;
exports.SCIMSourceGroupToJSON = SCIMSourceGroupToJSON;
exports.SCIMSourceGroupToJSONTyped = SCIMSourceGroupToJSONTyped;
const PartialGroup_1 = require("./PartialGroup");
/**
 * Check if a given object implements the SCIMSourceGroup interface.
 */
function instanceOfSCIMSourceGroup(value) {
    if (!('externalId' in value) || value['externalId'] === undefined)
        return false;
    if (!('group' in value) || value['group'] === undefined)
        return false;
    if (!('groupObj' in value) || value['groupObj'] === undefined)
        return false;
    if (!('source' in value) || value['source'] === undefined)
        return false;
    return true;
}
function SCIMSourceGroupFromJSON(json) {
    return SCIMSourceGroupFromJSONTyped(json, false);
}
function SCIMSourceGroupFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'externalId': json['external_id'],
        'group': json['group'],
        'groupObj': (0, PartialGroup_1.PartialGroupFromJSON)(json['group_obj']),
        'source': json['source'],
        'attributes': json['attributes'] == null ? undefined : json['attributes'],
    };
}
function SCIMSourceGroupToJSON(json) {
    return SCIMSourceGroupToJSONTyped(json, false);
}
function SCIMSourceGroupToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'external_id': value['externalId'],
        'group': value['group'],
        'source': value['source'],
        'attributes': value['attributes'],
    };
}
//# sourceMappingURL=SCIMSourceGroup.js.map