"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.instanceOfTelegramChallengeResponseRequest = instanceOfTelegramChallengeResponseRequest;
exports.TelegramChallengeResponseRequestFromJSON = TelegramChallengeResponseRequestFromJSON;
exports.TelegramChallengeResponseRequestFromJSONTyped = TelegramChallengeResponseRequestFromJSONTyped;
exports.TelegramChallengeResponseRequestToJSON = TelegramChallengeResponseRequestToJSON;
exports.TelegramChallengeResponseRequestToJSONTyped = TelegramChallengeResponseRequestToJSONTyped;
/**
 * Check if a given object implements the TelegramChallengeResponseRequest interface.
 */
function instanceOfTelegramChallengeResponseRequest(value) {
    if (!('id' in value) || value['id'] === undefined)
        return false;
    if (!('authDate' in value) || value['authDate'] === undefined)
        return false;
    if (!('hash' in value) || value['hash'] === undefined)
        return false;
    return true;
}
function TelegramChallengeResponseRequestFromJSON(json) {
    return TelegramChallengeResponseRequestFromJSONTyped(json, false);
}
function TelegramChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'],
        'firstName': json['first_name'] == null ? undefined : json['first_name'],
        'lastName': json['last_name'] == null ? undefined : json['last_name'],
        'username': json['username'] == null ? undefined : json['username'],
        'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'],
        'authDate': json['auth_date'],
        'hash': json['hash'],
        'component': json['component'] == null ? undefined : json['component'],
    };
}
function TelegramChallengeResponseRequestToJSON(json) {
    return TelegramChallengeResponseRequestToJSONTyped(json, false);
}
function TelegramChallengeResponseRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'first_name': value['firstName'],
        'last_name': value['lastName'],
        'username': value['username'],
        'photo_url': value['photoUrl'],
        'auth_date': value['authDate'],
        'hash': value['hash'],
        'component': value['component'],
    };
}
//# sourceMappingURL=TelegramChallengeResponseRequest.js.map