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

/**
 *
 * @export
 * @interface PatchedDeviceAccessGroupRequest
 */
export interface PatchedDeviceAccessGroupRequest {
    /**
     *
     * @type {string}
     * @memberof PatchedDeviceAccessGroupRequest
     */
    name?: string;
    /**
     *
     * @type {{ [key: string]: any; }}
     * @memberof PatchedDeviceAccessGroupRequest
     */
    attributes?: { [key: string]: any };
}

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

export function PatchedDeviceAccessGroupRequestFromJSON(
    json: any,
): PatchedDeviceAccessGroupRequest {
    return PatchedDeviceAccessGroupRequestFromJSONTyped(json, false);
}

export function PatchedDeviceAccessGroupRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): PatchedDeviceAccessGroupRequest {
    if (json == null) {
        return json;
    }
    return {
        name: json["name"] == null ? undefined : json["name"],
        attributes: json["attributes"] == null ? undefined : json["attributes"],
    };
}

export function PatchedDeviceAccessGroupRequestToJSON(json: any): PatchedDeviceAccessGroupRequest {
    return PatchedDeviceAccessGroupRequestToJSONTyped(json, false);
}

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

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