/* 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';
/**
 * Response that device has been authenticated and tab can be closed
 * @export
 * @interface OAuthDeviceCodeFinishChallengeResponseRequest
 */
export interface OAuthDeviceCodeFinishChallengeResponseRequest {
    /**
     * 
     * @type {string}
     * @memberof OAuthDeviceCodeFinishChallengeResponseRequest
     */
    component?: string;
}

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

export function OAuthDeviceCodeFinishChallengeResponseRequestFromJSON(json: any): OAuthDeviceCodeFinishChallengeResponseRequest {
    return OAuthDeviceCodeFinishChallengeResponseRequestFromJSONTyped(json, false);
}

export function OAuthDeviceCodeFinishChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthDeviceCodeFinishChallengeResponseRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'component': json['component'] == null ? undefined : json['component'],
    };
}

export function OAuthDeviceCodeFinishChallengeResponseRequestToJSON(json: any): OAuthDeviceCodeFinishChallengeResponseRequest {
    return OAuthDeviceCodeFinishChallengeResponseRequestToJSONTyped(json, false);
}

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

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

