"use strict";
/* 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfUserGroupRequest = instanceOfUserGroupRequest;
exports.UserGroupRequestFromJSON = UserGroupRequestFromJSON;
exports.UserGroupRequestFromJSONTyped = UserGroupRequestFromJSONTyped;
exports.UserGroupRequestToJSON = UserGroupRequestToJSON;
exports.UserGroupRequestToJSONTyped = UserGroupRequestToJSONTyped;
/**
 * Check if a given object implements the UserGroupRequest interface.
 */
function instanceOfUserGroupRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function UserGroupRequestFromJSON(json) {
    return UserGroupRequestFromJSONTyped(json, false);
}
function UserGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'isSuperuser': json['is_superuser'] == null ? undefined : json['is_superuser'],
        'parent': json['parent'] == null ? undefined : json['parent'],
        'attributes': json['attributes'] == null ? undefined : json['attributes'],
    };
}
function UserGroupRequestToJSON(json) {
    return UserGroupRequestToJSONTyped(json, false);
}
function UserGroupRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'is_superuser': value['isSuperuser'],
        'parent': value['parent'],
        'attributes': value['attributes'],
    };
}
//# sourceMappingURL=UserGroupRequest.js.map