"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.instanceOfAgentTokenResponse = instanceOfAgentTokenResponse;
exports.AgentTokenResponseFromJSON = AgentTokenResponseFromJSON;
exports.AgentTokenResponseFromJSONTyped = AgentTokenResponseFromJSONTyped;
exports.AgentTokenResponseToJSON = AgentTokenResponseToJSON;
exports.AgentTokenResponseToJSONTyped = AgentTokenResponseToJSONTyped;
/**
 * Check if a given object implements the AgentTokenResponse interface.
 */
function instanceOfAgentTokenResponse(value) {
    if (!('token' in value) || value['token'] === undefined)
        return false;
    return true;
}
function AgentTokenResponseFromJSON(json) {
    return AgentTokenResponseFromJSONTyped(json, false);
}
function AgentTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'token': json['token'],
        'expiresIn': json['expires_in'] == null ? undefined : json['expires_in'],
    };
}
function AgentTokenResponseToJSON(json) {
    return AgentTokenResponseToJSONTyped(json, false);
}
function AgentTokenResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'token': value['token'],
        'expires_in': value['expiresIn'],
    };
}
//# sourceMappingURL=AgentTokenResponse.js.map