/* 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.
 */

import { mapValues } from '../runtime';
/**
 * License Serializer
 * @export
 * @interface LicenseRequest
 */
export interface LicenseRequest {
    /**
     * 
     * @type {string}
     * @memberof LicenseRequest
     */
    key: string;
}

/**
 * Check if a given object implements the LicenseRequest interface.
 */
export function instanceOfLicenseRequest(value: object): value is LicenseRequest {
    if (!('key' in value) || value['key'] === undefined) return false;
    return true;
}

export function LicenseRequestFromJSON(json: any): LicenseRequest {
    return LicenseRequestFromJSONTyped(json, false);
}

export function LicenseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'key': json['key'],
    };
}

export function LicenseRequestToJSON(json: any): LicenseRequest {
    return LicenseRequestToJSONTyped(json, false);
}

export function LicenseRequestToJSONTyped(value?: LicenseRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'key': value['key'],
    };
}

