"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.instanceOfLicense = instanceOfLicense;
exports.LicenseFromJSON = LicenseFromJSON;
exports.LicenseFromJSONTyped = LicenseFromJSONTyped;
exports.LicenseToJSON = LicenseToJSON;
exports.LicenseToJSONTyped = LicenseToJSONTyped;
/**
 * Check if a given object implements the License interface.
 */
function instanceOfLicense(value) {
    if (!('licenseUuid' in value) || value['licenseUuid'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('key' in value) || value['key'] === undefined)
        return false;
    if (!('expiry' in value) || value['expiry'] === undefined)
        return false;
    if (!('internalUsers' in value) || value['internalUsers'] === undefined)
        return false;
    if (!('externalUsers' in value) || value['externalUsers'] === undefined)
        return false;
    return true;
}
function LicenseFromJSON(json) {
    return LicenseFromJSONTyped(json, false);
}
function LicenseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'licenseUuid': json['license_uuid'],
        'name': json['name'],
        'key': json['key'],
        'expiry': (new Date(json['expiry'])),
        'internalUsers': json['internal_users'],
        'externalUsers': json['external_users'],
    };
}
function LicenseToJSON(json) {
    return LicenseToJSONTyped(json, false);
}
function LicenseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'key': value['key'],
    };
}
//# sourceMappingURL=License.js.map