"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.instanceOfUserServiceAccountResponse = instanceOfUserServiceAccountResponse;
exports.UserServiceAccountResponseFromJSON = UserServiceAccountResponseFromJSON;
exports.UserServiceAccountResponseFromJSONTyped = UserServiceAccountResponseFromJSONTyped;
exports.UserServiceAccountResponseToJSON = UserServiceAccountResponseToJSON;
exports.UserServiceAccountResponseToJSONTyped = UserServiceAccountResponseToJSONTyped;
/**
 * Check if a given object implements the UserServiceAccountResponse interface.
 */
function instanceOfUserServiceAccountResponse(value) {
    if (!('username' in value) || value['username'] === undefined)
        return false;
    if (!('token' in value) || value['token'] === undefined)
        return false;
    if (!('userUid' in value) || value['userUid'] === undefined)
        return false;
    if (!('userPk' in value) || value['userPk'] === undefined)
        return false;
    return true;
}
function UserServiceAccountResponseFromJSON(json) {
    return UserServiceAccountResponseFromJSONTyped(json, false);
}
function UserServiceAccountResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'username': json['username'],
        'token': json['token'],
        'userUid': json['user_uid'],
        'userPk': json['user_pk'],
        'groupPk': json['group_pk'] == null ? undefined : json['group_pk'],
    };
}
function UserServiceAccountResponseToJSON(json) {
    return UserServiceAccountResponseToJSONTyped(json, false);
}
function UserServiceAccountResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'username': value['username'],
        'token': value['token'],
        'user_uid': value['userUid'],
        'user_pk': value['userPk'],
        'group_pk': value['groupPk'],
    };
}
//# sourceMappingURL=UserServiceAccountResponse.js.map