/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.2.3-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 DeviceGroupRequest */ export interface DeviceGroupRequest { /** * * @type {string} * @memberof DeviceGroupRequest */ id: string; /** * * @type {string} * @memberof DeviceGroupRequest */ name?: string; } /** * Check if a given object implements the DeviceGroupRequest interface. */ export function instanceOfDeviceGroupRequest(value: object): value is DeviceGroupRequest { if (!('id' in value) || value['id'] === undefined) return false; return true; } export function DeviceGroupRequestFromJSON(json: any): DeviceGroupRequest { return DeviceGroupRequestFromJSONTyped(json, false); } export function DeviceGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceGroupRequest { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'] == null ? undefined : json['name'], }; } export function DeviceGroupRequestToJSON(json: any): DeviceGroupRequest { return DeviceGroupRequestToJSONTyped(json, false); } export function DeviceGroupRequestToJSONTyped(value?: DeviceGroupRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], }; }