/* 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.
 */

import { mapValues } from '../runtime';
/**
 * Info about a single blueprint instance file
 * @export
 * @interface PatchedBlueprintInstanceRequest
 */
export interface PatchedBlueprintInstanceRequest {
    /**
     * 
     * @type {string}
     * @memberof PatchedBlueprintInstanceRequest
     */
    name?: string;
    /**
     * 
     * @type {string}
     * @memberof PatchedBlueprintInstanceRequest
     */
    path?: string;
    /**
     * 
     * @type {{ [key: string]: any; }}
     * @memberof PatchedBlueprintInstanceRequest
     */
    context?: { [key: string]: any; };
    /**
     * 
     * @type {boolean}
     * @memberof PatchedBlueprintInstanceRequest
     */
    enabled?: boolean;
    /**
     * 
     * @type {string}
     * @memberof PatchedBlueprintInstanceRequest
     */
    content?: string;
}

/**
 * Check if a given object implements the PatchedBlueprintInstanceRequest interface.
 */
export function instanceOfPatchedBlueprintInstanceRequest(value: object): value is PatchedBlueprintInstanceRequest {
    return true;
}

export function PatchedBlueprintInstanceRequestFromJSON(json: any): PatchedBlueprintInstanceRequest {
    return PatchedBlueprintInstanceRequestFromJSONTyped(json, false);
}

export function PatchedBlueprintInstanceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedBlueprintInstanceRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'] == null ? undefined : json['name'],
        'path': json['path'] == null ? undefined : json['path'],
        'context': json['context'] == null ? undefined : json['context'],
        'enabled': json['enabled'] == null ? undefined : json['enabled'],
        'content': json['content'] == null ? undefined : json['content'],
    };
}

export function PatchedBlueprintInstanceRequestToJSON(json: any): PatchedBlueprintInstanceRequest {
    return PatchedBlueprintInstanceRequestToJSONTyped(json, false);
}

export function PatchedBlueprintInstanceRequestToJSONTyped(value?: PatchedBlueprintInstanceRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'name': value['name'],
        'path': value['path'],
        'context': value['context'],
        'enabled': value['enabled'],
        'content': value['content'],
    };
}

