"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc4
 * 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.instanceOfTelegramAuthRequest = instanceOfTelegramAuthRequest;
exports.TelegramAuthRequestFromJSON = TelegramAuthRequestFromJSON;
exports.TelegramAuthRequestFromJSONTyped = TelegramAuthRequestFromJSONTyped;
exports.TelegramAuthRequestToJSON = TelegramAuthRequestToJSON;
exports.TelegramAuthRequestToJSONTyped = TelegramAuthRequestToJSONTyped;
/**
 * Check if a given object implements the TelegramAuthRequest interface.
 */
function instanceOfTelegramAuthRequest(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 TelegramAuthRequestFromJSON(json) {
    return TelegramAuthRequestFromJSONTyped(json, false);
}
function TelegramAuthRequestFromJSONTyped(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'],
    };
}
function TelegramAuthRequestToJSON(json) {
    return TelegramAuthRequestToJSONTyped(json, false);
}
function TelegramAuthRequestToJSONTyped(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'],
    };
}
//# sourceMappingURL=TelegramAuthRequest.js.map