"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.instanceOfDeviceSummary = instanceOfDeviceSummary;
exports.DeviceSummaryFromJSON = DeviceSummaryFromJSON;
exports.DeviceSummaryFromJSONTyped = DeviceSummaryFromJSONTyped;
exports.DeviceSummaryToJSON = DeviceSummaryToJSON;
exports.DeviceSummaryToJSONTyped = DeviceSummaryToJSONTyped;
/**
 * Check if a given object implements the DeviceSummary interface.
 */
function instanceOfDeviceSummary(value) {
    if (!('totalCount' in value) || value['totalCount'] === undefined)
        return false;
    if (!('unreachableCount' in value) || value['unreachableCount'] === undefined)
        return false;
    if (!('outdatedAgentCount' in value) || value['outdatedAgentCount'] === undefined)
        return false;
    return true;
}
function DeviceSummaryFromJSON(json) {
    return DeviceSummaryFromJSONTyped(json, false);
}
function DeviceSummaryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'totalCount': json['total_count'],
        'unreachableCount': json['unreachable_count'],
        'outdatedAgentCount': json['outdated_agent_count'],
    };
}
function DeviceSummaryToJSON(json) {
    return DeviceSummaryToJSONTyped(json, false);
}
function DeviceSummaryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'total_count': value['totalCount'],
        'unreachable_count': value['unreachableCount'],
        'outdated_agent_count': value['outdatedAgentCount'],
    };
}
//# sourceMappingURL=DeviceSummary.js.map