"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.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.instanceOfGroupRequest = instanceOfGroupRequest;
exports.GroupRequestFromJSON = GroupRequestFromJSON;
exports.GroupRequestFromJSONTyped = GroupRequestFromJSONTyped;
exports.GroupRequestToJSON = GroupRequestToJSON;
exports.GroupRequestToJSONTyped = GroupRequestToJSONTyped;
/**
 * Check if a given object implements the GroupRequest interface.
 */
function instanceOfGroupRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function GroupRequestFromJSON(json) {
    return GroupRequestFromJSONTyped(json, false);
}
function GroupRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'isSuperuser': json['is_superuser'] == null ? undefined : json['is_superuser'],
        'parents': json['parents'] == null ? undefined : json['parents'],
        'users': json['users'] == null ? undefined : json['users'],
        'attributes': json['attributes'] == null ? undefined : json['attributes'],
        'roles': json['roles'] == null ? undefined : json['roles'],
    };
}
function GroupRequestToJSON(json) {
    return GroupRequestToJSONTyped(json, false);
}
function GroupRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'is_superuser': value['isSuperuser'],
        'parents': value['parents'],
        'users': value['users'],
        'attributes': value['attributes'],
        'roles': value['roles'],
    };
}
//# sourceMappingURL=GroupRequest.js.map