"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfConsentChallengeResponseRequest = instanceOfConsentChallengeResponseRequest;
exports.ConsentChallengeResponseRequestFromJSON = ConsentChallengeResponseRequestFromJSON;
exports.ConsentChallengeResponseRequestFromJSONTyped = ConsentChallengeResponseRequestFromJSONTyped;
exports.ConsentChallengeResponseRequestToJSON = ConsentChallengeResponseRequestToJSON;
exports.ConsentChallengeResponseRequestToJSONTyped = ConsentChallengeResponseRequestToJSONTyped;
/**
 * Check if a given object implements the ConsentChallengeResponseRequest interface.
 */
function instanceOfConsentChallengeResponseRequest(value) {
    if (!('token' in value) || value['token'] === undefined)
        return false;
    return true;
}
function ConsentChallengeResponseRequestFromJSON(json) {
    return ConsentChallengeResponseRequestFromJSONTyped(json, false);
}
function ConsentChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'component': json['component'] == null ? undefined : json['component'],
        'token': json['token'],
    };
}
function ConsentChallengeResponseRequestToJSON(json) {
    return ConsentChallengeResponseRequestToJSONTyped(json, false);
}
function ConsentChallengeResponseRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'component': value['component'],
        'token': value['token'],
    };
}
//# sourceMappingURL=ConsentChallengeResponseRequest.js.map