/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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.
 */

/**
 * Serializer for blueprint metadata
 * @export
 * @interface Metadata
 */
export interface Metadata {
    /**
     *
     * @type {string}
     * @memberof Metadata
     */
    name: string;
    /**
     *
     * @type {{ [key: string]: any; }}
     * @memberof Metadata
     */
    labels: { [key: string]: any };
}

/**
 * Check if a given object implements the Metadata interface.
 */
export function instanceOfMetadata(value: object): value is Metadata {
    if (!("name" in value) || value["name"] === undefined) return false;
    if (!("labels" in value) || value["labels"] === undefined) return false;
    return true;
}

export function MetadataFromJSON(json: any): Metadata {
    return MetadataFromJSONTyped(json, false);
}

export function MetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): Metadata {
    if (json == null) {
        return json;
    }
    return {
        name: json["name"],
        labels: json["labels"],
    };
}

export function MetadataToJSON(json: any): Metadata {
    return MetadataToJSONTyped(json, false);
}

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

    return {
        name: value["name"],
        labels: value["labels"],
    };
}
