/* 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';
/**
 * Serializer for stages which can be selected by users
 * @export
 * @interface SelectableStage
 */
export interface SelectableStage {
    /**
     * 
     * @type {string}
     * @memberof SelectableStage
     */
    pk: string;
    /**
     * 
     * @type {string}
     * @memberof SelectableStage
     */
    name: string;
    /**
     * 
     * @type {string}
     * @memberof SelectableStage
     */
    verboseName: string;
    /**
     * 
     * @type {string}
     * @memberof SelectableStage
     */
    metaModelName: string;
}

/**
 * Check if a given object implements the SelectableStage interface.
 */
export function instanceOfSelectableStage(value: object): value is SelectableStage {
    if (!('pk' in value) || value['pk'] === undefined) return false;
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
    if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
    return true;
}

export function SelectableStageFromJSON(json: any): SelectableStage {
    return SelectableStageFromJSONTyped(json, false);
}

export function SelectableStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectableStage {
    if (json == null) {
        return json;
    }
    return {
        
        'pk': json['pk'],
        'name': json['name'],
        'verboseName': json['verbose_name'],
        'metaModelName': json['meta_model_name'],
    };
}

export function SelectableStageToJSON(json: any): SelectableStage {
    return SelectableStageToJSONTyped(json, false);
}

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

    return {
        
        'pk': value['pk'],
        'name': value['name'],
        'verbose_name': value['verboseName'],
        'meta_model_name': value['metaModelName'],
    };
}

