/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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.
 */

/**
 *
 * @export
 * @interface InstallID
 */
export interface InstallID {
    /**
     *
     * @type {string}
     * @memberof InstallID
     */
    installId: string;
}

/**
 * Check if a given object implements the InstallID interface.
 */
export function instanceOfInstallID(value: object): value is InstallID {
    if (!("installId" in value) || value["installId"] === undefined) return false;
    return true;
}

export function InstallIDFromJSON(json: any): InstallID {
    return InstallIDFromJSONTyped(json, false);
}

export function InstallIDFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstallID {
    if (json == null) {
        return json;
    }
    return {
        installId: json["install_id"],
    };
}

export function InstallIDToJSON(json: any): InstallID {
    return InstallIDToJSONTyped(json, false);
}

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

    return {
        install_id: value["installId"],
    };
}
