"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.instanceOfDeviceFactSnapshot = instanceOfDeviceFactSnapshot;
exports.DeviceFactSnapshotFromJSON = DeviceFactSnapshotFromJSON;
exports.DeviceFactSnapshotFromJSONTyped = DeviceFactSnapshotFromJSONTyped;
exports.DeviceFactSnapshotToJSON = DeviceFactSnapshotToJSON;
exports.DeviceFactSnapshotToJSONTyped = DeviceFactSnapshotToJSONTyped;
const VendorEnum_1 = require("./VendorEnum");
const DeviceFacts_1 = require("./DeviceFacts");
/**
 * Check if a given object implements the DeviceFactSnapshot interface.
 */
function instanceOfDeviceFactSnapshot(value) {
    if (!('data' in value) || value['data'] === undefined)
        return false;
    if (!('connection' in value) || value['connection'] === undefined)
        return false;
    if (!('created' in value) || value['created'] === undefined)
        return false;
    if (!('expires' in value) || value['expires'] === undefined)
        return false;
    if (!('vendor' in value) || value['vendor'] === undefined)
        return false;
    return true;
}
function DeviceFactSnapshotFromJSON(json) {
    return DeviceFactSnapshotFromJSONTyped(json, false);
}
function DeviceFactSnapshotFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'data': (0, DeviceFacts_1.DeviceFactsFromJSON)(json['data']),
        'connection': json['connection'],
        'created': (new Date(json['created'])),
        'expires': (json['expires'] == null ? null : new Date(json['expires'])),
        'vendor': (0, VendorEnum_1.VendorEnumFromJSON)(json['vendor']),
    };
}
function DeviceFactSnapshotToJSON(json) {
    return DeviceFactSnapshotToJSONTyped(json, false);
}
function DeviceFactSnapshotToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'data': (0, DeviceFacts_1.DeviceFactsToJSON)(value['data']),
        'connection': value['connection'],
    };
}
//# sourceMappingURL=DeviceFactSnapshot.js.map