"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.instanceOfDeviceConnection = instanceOfDeviceConnection;
exports.DeviceConnectionFromJSON = DeviceConnectionFromJSON;
exports.DeviceConnectionFromJSONTyped = DeviceConnectionFromJSONTyped;
exports.DeviceConnectionToJSON = DeviceConnectionToJSON;
exports.DeviceConnectionToJSONTyped = DeviceConnectionToJSONTyped;
const Connector_1 = require("./Connector");
const DeviceFactSnapshot_1 = require("./DeviceFactSnapshot");
/**
 * Check if a given object implements the DeviceConnection interface.
 */
function instanceOfDeviceConnection(value) {
    if (!('device' in value) || value['device'] === undefined)
        return false;
    if (!('connector' in value) || value['connector'] === undefined)
        return false;
    if (!('connectorObj' in value) || value['connectorObj'] === undefined)
        return false;
    if (!('latestSnapshot' in value) || value['latestSnapshot'] === undefined)
        return false;
    return true;
}
function DeviceConnectionFromJSON(json) {
    return DeviceConnectionFromJSONTyped(json, false);
}
function DeviceConnectionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'device': json['device'],
        'connector': json['connector'],
        'connectorObj': (0, Connector_1.ConnectorFromJSON)(json['connector_obj']),
        'latestSnapshot': (0, DeviceFactSnapshot_1.DeviceFactSnapshotFromJSON)(json['latest_snapshot']),
    };
}
function DeviceConnectionToJSON(json) {
    return DeviceConnectionToJSONTyped(json, false);
}
function DeviceConnectionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'device': value['device'],
        'connector': value['connector'],
    };
}
//# sourceMappingURL=DeviceConnection.js.map