"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.instanceOfGroupMemberRequest = instanceOfGroupMemberRequest;
exports.GroupMemberRequestFromJSON = GroupMemberRequestFromJSON;
exports.GroupMemberRequestFromJSONTyped = GroupMemberRequestFromJSONTyped;
exports.GroupMemberRequestToJSON = GroupMemberRequestToJSON;
exports.GroupMemberRequestToJSONTyped = GroupMemberRequestToJSONTyped;
/**
 * Check if a given object implements the GroupMemberRequest interface.
 */
function instanceOfGroupMemberRequest(value) {
    if (!('username' in value) || value['username'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function GroupMemberRequestFromJSON(json) {
    return GroupMemberRequestFromJSONTyped(json, false);
}
function GroupMemberRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'username': json['username'],
        'name': json['name'],
        'isActive': json['is_active'] == null ? undefined : json['is_active'],
        'lastLogin': json['last_login'] == null ? undefined : (new Date(json['last_login'])),
        'email': json['email'] == null ? undefined : json['email'],
        'attributes': json['attributes'] == null ? undefined : json['attributes'],
    };
}
function GroupMemberRequestToJSON(json) {
    return GroupMemberRequestToJSONTyped(json, false);
}
function GroupMemberRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'username': value['username'],
        'name': value['name'],
        'is_active': value['isActive'],
        'last_login': value['lastLogin'] === null ? null : (value['lastLogin']?.toISOString()),
        'email': value['email'],
        'attributes': value['attributes'],
    };
}
//# sourceMappingURL=GroupMemberRequest.js.map