"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.instanceOfBlueprintInstance = instanceOfBlueprintInstance;
exports.BlueprintInstanceFromJSON = BlueprintInstanceFromJSON;
exports.BlueprintInstanceFromJSONTyped = BlueprintInstanceFromJSONTyped;
exports.BlueprintInstanceToJSON = BlueprintInstanceToJSON;
exports.BlueprintInstanceToJSONTyped = BlueprintInstanceToJSONTyped;
const BlueprintInstanceStatusEnum_1 = require("./BlueprintInstanceStatusEnum");
/**
 * Check if a given object implements the BlueprintInstance interface.
 */
function instanceOfBlueprintInstance(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('lastApplied' in value) || value['lastApplied'] === undefined)
        return false;
    if (!('lastAppliedHash' in value) || value['lastAppliedHash'] === undefined)
        return false;
    if (!('status' in value) || value['status'] === undefined)
        return false;
    if (!('managedModels' in value) || value['managedModels'] === undefined)
        return false;
    if (!('metadata' in value) || value['metadata'] === undefined)
        return false;
    return true;
}
function BlueprintInstanceFromJSON(json) {
    return BlueprintInstanceFromJSONTyped(json, false);
}
function BlueprintInstanceFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'path': json['path'] == null ? undefined : json['path'],
        'context': json['context'] == null ? undefined : json['context'],
        'lastApplied': (new Date(json['last_applied'])),
        'lastAppliedHash': json['last_applied_hash'],
        'status': (0, BlueprintInstanceStatusEnum_1.BlueprintInstanceStatusEnumFromJSON)(json['status']),
        'enabled': json['enabled'] == null ? undefined : json['enabled'],
        'managedModels': json['managed_models'],
        'metadata': json['metadata'],
        'content': json['content'] == null ? undefined : json['content'],
    };
}
function BlueprintInstanceToJSON(json) {
    return BlueprintInstanceToJSONTyped(json, false);
}
function BlueprintInstanceToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'path': value['path'],
        'context': value['context'],
        'enabled': value['enabled'],
        'content': value['content'],
    };
}
//# sourceMappingURL=BlueprintInstance.js.map