"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.instanceOfBlueprintFile = instanceOfBlueprintFile;
exports.BlueprintFileFromJSON = BlueprintFileFromJSON;
exports.BlueprintFileFromJSONTyped = BlueprintFileFromJSONTyped;
exports.BlueprintFileToJSON = BlueprintFileToJSON;
exports.BlueprintFileToJSONTyped = BlueprintFileToJSONTyped;
const Metadata_1 = require("./Metadata");
/**
 * Check if a given object implements the BlueprintFile interface.
 */
function instanceOfBlueprintFile(value) {
    if (!('path' in value) || value['path'] === undefined)
        return false;
    if (!('lastM' in value) || value['lastM'] === undefined)
        return false;
    if (!('hash' in value) || value['hash'] === undefined)
        return false;
    if (!('meta' in value) || value['meta'] === undefined)
        return false;
    return true;
}
function BlueprintFileFromJSON(json) {
    return BlueprintFileFromJSONTyped(json, false);
}
function BlueprintFileFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'path': json['path'],
        'lastM': (new Date(json['last_m'])),
        'hash': json['hash'],
        'meta': (0, Metadata_1.MetadataFromJSON)(json['meta']),
    };
}
function BlueprintFileToJSON(json) {
    return BlueprintFileToJSONTyped(json, false);
}
function BlueprintFileToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'path': value['path'],
        'last_m': ((value['lastM']).toISOString()),
        'hash': value['hash'],
    };
}
//# sourceMappingURL=BlueprintFile.js.map