"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-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.instanceOfRelatedGroup = instanceOfRelatedGroup;
exports.RelatedGroupFromJSON = RelatedGroupFromJSON;
exports.RelatedGroupFromJSONTyped = RelatedGroupFromJSONTyped;
exports.RelatedGroupToJSON = RelatedGroupToJSON;
exports.RelatedGroupToJSONTyped = RelatedGroupToJSONTyped;
/**
 * Check if a given object implements the RelatedGroup interface.
 */
function instanceOfRelatedGroup(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('groupUuid' in value) || value['groupUuid'] === undefined)
        return false;
    return true;
}
function RelatedGroupFromJSON(json) {
    return RelatedGroupFromJSONTyped(json, false);
}
function RelatedGroupFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'isSuperuser': json['is_superuser'] == null ? undefined : json['is_superuser'],
        'attributes': json['attributes'] == null ? undefined : json['attributes'],
        'groupUuid': json['group_uuid'],
    };
}
function RelatedGroupToJSON(json) {
    return RelatedGroupToJSONTyped(json, false);
}
function RelatedGroupToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'is_superuser': value['isSuperuser'],
        'attributes': value['attributes'],
    };
}
//# sourceMappingURL=RelatedGroup.js.map