"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.instanceOfReputation = instanceOfReputation;
exports.ReputationFromJSON = ReputationFromJSON;
exports.ReputationFromJSONTyped = ReputationFromJSONTyped;
exports.ReputationToJSON = ReputationToJSON;
exports.ReputationToJSONTyped = ReputationToJSONTyped;
/**
 * Check if a given object implements the Reputation interface.
 */
function instanceOfReputation(value) {
    if (!('identifier' in value) || value['identifier'] === undefined)
        return false;
    if (!('ip' in value) || value['ip'] === undefined)
        return false;
    if (!('updated' in value) || value['updated'] === undefined)
        return false;
    return true;
}
function ReputationFromJSON(json) {
    return ReputationFromJSONTyped(json, false);
}
function ReputationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'] == null ? undefined : json['pk'],
        'identifier': json['identifier'],
        'ip': json['ip'],
        'ipGeoData': json['ip_geo_data'] == null ? undefined : json['ip_geo_data'],
        'ipAsnData': json['ip_asn_data'] == null ? undefined : json['ip_asn_data'],
        'score': json['score'] == null ? undefined : json['score'],
        'updated': (new Date(json['updated'])),
    };
}
function ReputationToJSON(json) {
    return ReputationToJSONTyped(json, false);
}
function ReputationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'pk': value['pk'],
        'identifier': value['identifier'],
        'ip': value['ip'],
        'ip_geo_data': value['ipGeoData'],
        'ip_asn_data': value['ipAsnData'],
        'score': value['score'],
    };
}
//# sourceMappingURL=Reputation.js.map