/* 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 includes the user-entered device code
 * @export
 * @interface OAuthDeviceCodeChallengeResponseRequest
 */
export interface OAuthDeviceCodeChallengeResponseRequest {
    /**
     * 
     * @type {string}
     * @memberof OAuthDeviceCodeChallengeResponseRequest
     */
    component?: string;
    /**
     * 
     * @type {string}
     * @memberof OAuthDeviceCodeChallengeResponseRequest
     */
    code: string;
}

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

export function OAuthDeviceCodeChallengeResponseRequestFromJSON(json: any): OAuthDeviceCodeChallengeResponseRequest {
    return OAuthDeviceCodeChallengeResponseRequestFromJSONTyped(json, false);
}

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

export function OAuthDeviceCodeChallengeResponseRequestToJSON(json: any): OAuthDeviceCodeChallengeResponseRequest {
    return OAuthDeviceCodeChallengeResponseRequestToJSONTyped(json, false);
}

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

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

