/* 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 PatchedLicenseRequest
 */
export interface PatchedLicenseRequest {
    /**
     * 
     * @type {string}
     * @memberof PatchedLicenseRequest
     */
    key?: string;
}

/**
 * Check if a given object implements the PatchedLicenseRequest interface.
 */
export function instanceOfPatchedLicenseRequest(value: object): value is PatchedLicenseRequest {
    return true;
}

export function PatchedLicenseRequestFromJSON(json: any): PatchedLicenseRequest {
    return PatchedLicenseRequestFromJSONTyped(json, false);
}

export function PatchedLicenseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedLicenseRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'key': json['key'] == null ? undefined : json['key'],
    };
}

export function PatchedLicenseRequestToJSON(json: any): PatchedLicenseRequest {
    return PatchedLicenseRequestToJSONTyped(json, false);
}

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

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

