"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfRequestedBy = instanceOfRequestedBy;
exports.RequestedByFromJSON = RequestedByFromJSON;
exports.RequestedByFromJSONTyped = RequestedByFromJSONTyped;
exports.RequestedByToJSON = RequestedByToJSON;
exports.RequestedByToJSONTyped = RequestedByToJSONTyped;
/**
 * Check if a given object implements the RequestedBy interface.
 */
function instanceOfRequestedBy(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('username' in value) || value['username'] === undefined)
        return false;
    return true;
}
function RequestedByFromJSON(json) {
    return RequestedByFromJSONTyped(json, false);
}
function RequestedByFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'username': json['username'],
    };
}
function RequestedByToJSON(json) {
    return RequestedByToJSONTyped(json, false);
}
function RequestedByToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'username': value['username'],
    };
}
//# sourceMappingURL=RequestedBy.js.map