/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.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';
/**
 * 
 * @export
 * @interface DeviceAccessGroup
 */
export interface DeviceAccessGroup {
    /**
     * 
     * @type {string}
     * @memberof DeviceAccessGroup
     */
    readonly pbmUuid: string;
    /**
     * 
     * @type {string}
     * @memberof DeviceAccessGroup
     */
    name: string;
}

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

export function DeviceAccessGroupFromJSON(json: any): DeviceAccessGroup {
    return DeviceAccessGroupFromJSONTyped(json, false);
}

export function DeviceAccessGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceAccessGroup {
    if (json == null) {
        return json;
    }
    return {
        
        'pbmUuid': json['pbm_uuid'],
        'name': json['name'],
    };
}

export function DeviceAccessGroupToJSON(json: any): DeviceAccessGroup {
    return DeviceAccessGroupToJSONTyped(json, false);
}

export function DeviceAccessGroupToJSONTyped(value?: Omit<DeviceAccessGroup, 'pbm_uuid'> | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'name': value['name'],
    };
}

